ng-repeat with multiple filters on large data set

前端 未结 5 1531
無奈伤痛
無奈伤痛 2020-12-13 12:49

I\'m still new to AngularJS, so I\'m just trying to do a simple CRUD app. Currently I pull the data (in a JSON file) with $http in a div handled by

5条回答
  •  忘掉有多难
    2020-12-13 13:17

    I know this question is old but for anyone in the future. Filtering in line is expensive (computationally) because it works directly on the DOM, if you are dealing with large amounts of data, 1000+ rows, it is much better to filter your collection in your controller then repeat on that instead.

提交回复
热议问题