angularjs very slow fetching ng-repeat data from a

2019-04-11 23:59发布

问题:

I have a json file which has about 8000 contacts in it, fetching all that data takes a very long time with angularjs using ng-repeat, is there any fix for this?

回答1:

You cannot expect much speed when retrieving such large records. You can optimize the ng-repeat performance by using

  1. Track by
  2. BindOnce
  3. Infinite Scroll

These things will improve the performance to an extent.