简体   繁体   中英

Angular 2 *ngFor re renders elements

I have this ngFor reading data from a Firebase database:

<div *ngFor="let post of myPosts | async" >

Each time a new post is being pushed, all of the posts elements are being re rendered.

Any suggestions?

Thanks!

Its a known issue in RC4. The following issue is similar. https://github.com/angular/angular/issues/9454

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM