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
Correct way of doing this kind of requirement is to do with pagination
, since you are loading data from the server side, you should make your api to support pagination.
It should accept three parameters such as number of items
, start
, limit
and you should initially get the number of items and repeat it until you get the whole result set.
There should be another request to get the total number
of items. By doing this you can retrieve all the elements at once loaded in the client side. Until that you should have a loading indicator, or you could load this data when the login process/application starts.
limitTo
will not be able to help with the search , because you are limiting the results.