Trying to use a component in two pages with lazy loading

What I do for that is to have an authentication status provider that exposes a Subject<boolean>. I subscribe to it in the app component and set the root page there correspondingly. Then anybody can inject it and call next() on the authNotifier and all the interaction with the root nav is confined to the app component.