Skip to content

Angular 7 project, in which parent and lazy loaded components communicate via a service.

Notifications You must be signed in to change notification settings

servrox/demo-interact-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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