Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.01 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.01 KB

Demo: Parent and lazy loaded components
communicate via a service

Live Demo

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.

Router Tree

Getting Started

git clone https://github.com/servrox/demo-interact-router.git
cd demo-interact-router
yarn
ng serve

Built With

Authors