How to add conditional attribute in Angular?
问题 In my Angular project (v6) have a table as shown below and I list the records by checking index numbers of them. I want to display all the records on the first page (5 records) and animate using Angular-Animations only the first record. The following example displays all records with animation (but I just want to animate the first row). <ng-template pTemplate="body" let-row let-i="rowIndex"> <tr *ngIf="i==0" [@fadeInOnEnter]> <td> <a [routerLink]="['/detail/']">{{ row.Title }}</a> </td> <!--