Ascarbek / suggestbox

angular suggestbox, multiselect dropdown with customizable layout
MIT License
22 stars 5 forks source link

Directive get loads before data comes from server. #10

Open Nishanksingla opened 7 years ago

Nishanksingla commented 7 years ago

Hey I have applied this directive in a subview and my data comes in parent controller from the server. If I load the main page first which executes the parent controller then when I navigate to subview, data is shown perfectly but when refresh the sub view, directive gets loaded before the data has arrived from server thus directive does not work.

Is there any way in which directive is loaded in a lazy way ?

Ascarbek commented 7 years ago

Hi! there isn't a lazyload way for now.. but if you change a bound sb-list array after load the directive should work correctly. Can you show me your case? I'm planning to add lazyload feature soon. But maybe I can help with your case anyway.