I am using UI-Router and multiple nested named views. One of my pages, Company, has a sub section concerning Jobs. Jobs need to know the active Company, as well as access to a slew of other services that aren't really part of Company.
The straight forward approach is to throw everything into Company and inject all needed services there, but I'd like to separate and keep the Job sub section in its own view. My issue is here the Company page allows for navigation across multiple Companies, and I don't know a clean way to inform the Job view of the active Company change. Right now I am using a rootScope Broadcast, and it's really dirty and looks like it'll cause me issues down the road.
- How can I notify a child view that the parent's data has changed, and pass along an updated parameter at that time?