How to listen in angular4 * whether the ngFor has finished traversing

< html >

<ion-list>
    <ion-item *ngFor="let i of list"></ion-item>
</ion-list>

< / html >

how do I listen to whether ngFof has finished traversing this array?


Why are you listening to this?


that should be called after the complete parsing of the ion-list component is completed. Execute it in the lifecycle hook. Which document to check may also be written in asynchronism


try the lifecycle function ionViewDidEnter .

Menu