I have a basic angular application that I need to do the following:
- App controller is initialized
- $http call happens and returns a resolved promise once call to server is completed. Result is stored in scope variable. (this can happen before any other actions on page)
- Directive is initialized with the data from the scope variable of previous step.
The directive in question wraps a non-angular Jquery library (galleria.io) and it is crucial to initialize it only after data is obtained. Otherwise, it has to be first initialized with some dummy data and show to viewer some screen "garbage".