I am wondering if I have a combination of ngIf
and ngFor
like this. What will run first when Angular creates its elements?
<li *ngIf='isDisplayed' *ngFor='let item of itemsList'></li>
Imaging in a scenario that we have an itemsList
of couple of thousands item
, and ngFor
runs first would make application a complete disaster. Of course I can use a div
to wrap this and put ngIf
there, but knowing more about this is great. Thanks.