I am using ngFor to create a table from two arrays in Angular typescript.
<tr *ngFor="let e of lis1; let k=index">
<td>{{e}} </td>
<td>{{lis2[k]}}</td>
</tr>
The resulting table looks like this:
Name Age
a 15
b 20
c 25
How can I change the row color for entries with an age greater than 20?
I have arrays lis1 (names: a, b, c) and lis2 (ages: 15, 20, 25).