Background scenario:
I have ng-repeatone that fills my view, dynamically increasing the container <div>.
I need to adjust my height <div>when rendering is complete, and I also need to do this on every other page of my application.
I know the function well ready():
angular.element(document).ready(function() {
console.log('ready')
})
But this code, placed in app.js, is executed only when the page is first opened (or reloaded).
Important Note:I use ui.routerto navigate my "pages", so I call `$ state.transitionTo () when I need to change the page.
Question: Is there an Angular event that is broadcast whenever a page is fully displayed?
source
share