Lazy loaded component demo.
You can learn more from this article here.
Angular 9 is required.
- Clone this repo
git clone [email protected]:johnpapa/angular-lazy-load-demo.git
- Run
cd angular-lazy-load-demo
- Run
ng serve
for a dev server. - Navigate to
http://localhost:4200/
These examples should be able to help you get started with lazy loading components dynamically, with or without children. If you want to learn more, check out these resources:
- Dynamic Component Loader
- 7 new features in Angular 9.
- VS Code editor
- Angular Essentials Extension for VS Code
- Angular Language Service for VS Code
- Angular Lazy Load Demo source code