The parent is lazy loading tab-content (from different components) in his router outlet.
In the parent also sits a loading-overlay component loaded from the core module (it isn't necessary to use a core module, this is just for a more beautiful structure).
When in one of the components, which were loaded by a lazy module, a button is fired, the loading-overlay is activated for a given time.
Start by checking out the app.component.html and one of the tab components.
git clone https://github.com/servrox/demo-interact-router.git
cd demo-interact-router
yarn
ng serve
- Angular CLI - version 7.3.0
- Angular Material - To pimp this app.
- Marcel Mayer - servrox.solutions