Hi!

I'm trying to watch an elements position in a directive. but as it appears 
when the router loads a new view the new template gets first appended into 
the DOM before removing the old view. This leads to wrong results after 
re-routing when watching positions as there is no digest cycle upon 
removing the old view from the dom.

I managed to work around it by listening to the "$viewContentLoaded" event 
and manually invoke $apply() as it gets emitted after cleaning up the old 
view.

Is this the wanted behaviour or am I missing something?

Thanks

-- 
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.

Reply via email to