router-outlet does not send activate event on attach #20501
Labels
area: router
needs reproduction
This issue needs a reproduction in order for the team to investigate further
Milestone
I'm submitting a...
Current behavior
https://github.com/angular/angular/blob/5.0.1/packages/router/src/directives/router_outlet.ts#L66
In case an existing component gets mounted to a router-outlet, attach gets called.
Attach does not emit a change to the activateEvents EventEmitter, even though it does change the isActive property of the router.
Expected behavior
Attach also emits a change to the activateEvents EventEmitter
What is the motivation / use case for changing the behavior?
In my use case, I want my parent to attach events to the child components.
The children are loaded in a router-outlet, which resorts to me having to listen to router-outlet activate event in order to bind to the child components (for reasons, I can't use a service).
Environment
The text was updated successfully, but these errors were encountered: