In the main controller I wrote:
angular.element(window).load(function () {
$timeout(function () {
scrollAnchor(); // Scroll to Anchor
});
});
I'd this to to scroll to the last operation right after all elements were rendered. The problem is that there are also other $timeout() with other functions. So the scrolling is not the last operation. Is there a way to introduce a priority over the functions executed in $timeout?
$timeout. So we can deliver you a nice and stable solution. I promise, in the end you dont need even one$timeout.