angular get first element ngfor 1

angular get first element ngfor

 

Here is what the above code is Doing:
1. We’re using the *ngFor directive to loop through the indicadores array.
2. We’re using the first variable to check if the current iteration is the first one.
3. We’re setting the checked property of the md-button-toggle to first.

Similar Posts