Hello, I'm looking for a way to receive events "globally" when the router has finished activating a route.
Here is the situation I have. I've got two controls I am using for navigation. One is a navigation sidebar, the other is a breadcrumb control. The system I've built automates the creation of both, but uses a series of arrays of data in my redux state (navigation items, page items, etc) and relies upon a value in my global state called currentPageId. (Before you ask why I'm using my own page items and not the router, its more of a UI oriented model... though once I have it all working I may look at finding a way to combine my router config and page items into a single source) I'm looking for the easiest way to get notified that the router has finished initializing a random component in the router outlet so I can update the currentPageId value in my state. I'd prefer to not have to touch every component to make them go out and update this variable when they are activated. Is it possible to get the ActivatedRoute object passed to a top-level object, such as AppComponent instead of just the objects inside of the router outlet? -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.