There's a $stateChangeComplete event that gets emitted on $rootScope, I *think* when the state has changed (partials loaded), but maybe not after all the later stuff get loaded (say you have to resolve a promise for an array that ends up being ng-repeated).
Personally, I'd wait for the resource you're watching to finish loading (on a promise) and take a look at angular durated scroll on github. Easy-peasy, and you don't have to mess around with $anchorScroll. e On Wed, Jul 23, 2014 at 1:27 AM, Benjamin Falk <[email protected]> wrote: > Someone told me that resolve at the $stateProvider would help, but here I > have the same problem with the DOM which is not completely loaded. > > On Wednesday, July 23, 2014 10:04:42 AM UTC+2, Benjamin Falk wrote: >> >> Hello, >> >> I'm using ui-router to be able to have nested views. What I would like to >> achieve now is to have somehow an anchor or an id on an DOM element and >> then - when all views, nested views included are loaded into DOM - jumped >> straight to it depending on an parameter ?param=ID >> >> I thought about watching the URL by myself, but that doesn't make sense >> since I can't jump to an element which is not there yet. >> >> Has anyone an idea? >> > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
