2
Answers

How to highlight last record/row of a table

Photo of Mandar Shinde

Mandar Shinde

6y
1.1k
1
I am trying to 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.i want to highlight last row of that table and want to call click event of that highlighted row to show some for that row id but its not working.Any help will be appericiated.
 
<tr *ngFor="let item of items1 ; let i = index"
(show) ="Highlighted(item,item.ID)" (click)="GetData(item,item.ID)"
[ngClass]="{'highlight' : item.AppDateTime == selectedName}" id="cursor">

Answers (2)