I try to declare an index in * ngFor, but I get a type error and it says
<div class='text' *ngFor='let item of blogs; let i = index | async | filter : 'feat' : true'>
If I output let i = index , it works fine, but I want to use an index, so I can apply css classes to elements. Look at the documentation, here's how you should do it.
source share