loading large array in oi-select takes too much of time in angularjs

前端 未结 3 1173

I am using oi-select library, i have customized it according to my project need and i have written directive for it. The problem is its taking too much of time say 10secs to

3条回答
  •  旧巷少年郎
    2020-12-11 17:29

    You may try the limitTo filter in ng-repeat in angularjs which takes the additional argument to start the iteration.

    https://docs.angularjs.org/api/ng/filter/limitTo

    On scroll, you can then change that argument based on the number of items pending or left for rendering or the number of items already rendered. This should help you in approach of selective loading of data on scroll.

提交回复
热议问题