5 ms·
With your native angular plnkr example, change ng-repeat to: ng-repeat="line in data track by $index" Now try timing again. http://plnkr.co/edit/PHzYFa9N
by GamblersFallacy 12y ago
With your native angular plnkr example, change ng-repeat to:
ng-repeat="line in data track by $index"
Now try timing again.
http://plnkr.co/edit/PHzYFa9N4RkxcDzZMcHk?p=preview http://plnkr.co/edit/PHzYFa9N4RkxcDzZMcHk?p=preview
- littleiffel 12y agoI did try your example, and yes track by $index helps but only on updating the DOm not initial rendering. Post got updated
- GamblersFallacy 12y agoInteresting update. I never linked ng-repeat to the initial render lag with my app (one page, 1200 - 3000 bindings), otherwise the performance is great. I've assumed it was a server side issue I could tune before pushing to production. Thanks, now I know where to look.