I am trying to determine the number of iterations in ngFor in order to control the visibility of elements. For example, I want to stop iterating when a certain number is reached. The current template looks like this:
<p *ngIf = "heros2.length > 3">
There are too many users
</p>
<div *ngIf = "heros2.length == 3">
<ul>
<li *ngFor = 'let hero1 of heros2'>
There are many users
{{hero1.name}}
</li>
</ul>
</div>