Hi,

I have a global service, in which I would like some action to happen when I 
change the route but *before* the view is initialized (before ngOnInit).
When I subscribe to router directly the event is triggered after the view 
is initialized. In angular 1 there used to be quite a lots of events 
catchable on route changes but I can't find anything equivalent in angular2 
except the very limited subscription to router.
As this needs to apply on each route I don't want tu manually configure 
each routes to make a call to the service. This could only lead to errors I 
think.

I can't find anything in the docs, could someone help me please.

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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to