In my index.html
file I have the following code:
<body>
<div ui-view></div>
<div ng-include="footer.html"></div>
</body>
The problem is that the footer is displayed before the dynamic content related to the active state is loaded and rendered.
I tried to use the event $viewContentLoaded
but this event is fired when the view content has been loaded not when it has been compiled.
I used ng-include
in index.html
because my footer is generic and should be used in all the app pages.
How to solve this problem?