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.