I want to highlight the row on which i am clicking.
I am highlight last record/row of table with his id in angular 6. what i am doing is-
I am retriving some records from a database and showing in dynamic table.This is code of highlighting
last record
(show) ="Highlighted(item,item.ID)" (click)="GetData(item,item.ID)"
[ngClass]="{highlight : last}" id="cursor">
But when i click on other record that record/row and last row both are highlited.I want to highlight that row which i am clicking on. Any help will be appericiated.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsForums
Top experts
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mandar ShindeRank #4,584 · 336 reputationPosted Apr 5, 2019, 9:24 PM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Apr 5, 2019, 9:00 PM EDT