Mandar Shinde

Mandar Shinde

  • NA
  • 423
  • 110k

How to highlight last record/row of a table

Apr 5 2019 6:49 AM
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)