P粉5783439942023-08-15 11:33:59
You have two choices.
Option 1: Conditionally apply a class using ngClass
<tr *ngFor="let data of List | paginate : { itemsPerPage: 10, currentPage: p }; let last = last" [ngClass]="{ yourclass: last }">
Option 2: Select the last tr
in your stylesheettr:last-of-type { // 你的样式 }