We have the following requirement.
We have a master root layout in the app root component. In this layout we have a router-outlet and components are injected into the router-outlet by using the Angular routing mechanism.
We need to hook from the master root layout into the lifecycle events of the components being injected into the router-outlet.
Because if we register to the router events NavigationEnd it is sometimes being invoked before the component ngOnInit. So we know when the navigation ends but we don't know when the component has finished doing work. Ideally we would like to tap into the lifecycle events of a component.
The requirement is also that the components being injected do not inherit a special class or something like that...
How can this be done?