Npsad
Npsad

Reputation: 616

angular2-multiselect [data] is loading data very slow

<angular2-multiselect [data]="listAllCategories" #serviceSubCategoryLists
                  [settings]="serviceTypeSettings ">

angular2-multiselect [data]="List" loads very slow to dropdown if list is having 1000+ items.

Upvotes: 1

Views: 1716

Answers (2)

Purushoth.Kesav
Purushoth.Kesav

Reputation: 665

Make use of lazyLoading in your settings. Which loads data from API asynchronously.

serviceTypeSettings = {
lazyLoading: true
}

plz refer: https://cuppalabs.github.io/angular2-multiselect-dropdown/#/lazyloadingRemoteData

Upvotes: 2

Saleh Khademi
Saleh Khademi

Reputation: 25

Where is data coming from? if you use an API, please check it with Postman, maybe it took time in API layer or server side app

Upvotes: 0

Related Questions