Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 465
Rohit Vinay Avatar asked Dec 07 '25 23:12

Rohit Vinay


1 Answers

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.

like image 165
Gopesh Avatar answered Dec 09 '25 18:12

Gopesh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!