Skip to content

Angular comes with a functionality that allows you to lazy load routable modules. Although in most cases this functionality is sufficient, it’s still only a small piece of the pie. What about situations where we want to lazy load modules that aren’t routable?

License

Notifications You must be signed in to change notification settings

DanishDeveloper360/lazy-load-component-without-route

Repository files navigation

LazyLoadComponentWithoutRoute

This project was generated with Angular CLI version 7.3.0.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

About

Angular comes with a functionality that allows you to lazy load routable modules. Although in most cases this functionality is sufficient, it’s still only a small piece of the pie. What about situations where we want to lazy load modules that aren’t routable?

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published