angularjs very slow fetching ng-repeat data from a json file

拜拜、爱过 提交于 2020-01-13 04:32:26

问题


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.



来源:https://stackoverflow.com/questions/24261331/angularjs-very-slow-fetching-ng-repeat-data-from-a-json-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!