问题
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
- Track by
- BindOnce
- Infinite Scroll
These things will improve the performance to an extent.
来源:https://stackoverflow.com/questions/24261331/angularjs-very-slow-fetching-ng-repeat-data-from-a-json-file