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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mandar ShindePosted Apr 6, 2019, 1:24 AM
Laxmidhar SahooPosted Apr 6, 2019, 1:00 AM