suggestbox
suggestbox copied to clipboard
Directive get loads before data comes from server.
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 ?