Beruflich Dokumente
Kultur Dokumente
Lazy-load is one of the best features of Router Module that can load each module when
it is required.
1. Installation
Installation via npm package angular-
router-loader
1. Webpack config
Add the new library in to webpack config.
Installation with Webpack
3. Routing
Configuring the Root Routing Module
Installation with Webpack
3. Configure children
Configuring Children Routing Modules
Demo - Lazy-load
Preload
Preload vs Lazy-load
1. Installation
Import PreloadAllModules
Add a new object at the route path that you want to preload
Modularization
Architecture
Global services
Architecture
RX Observables Promises
An Observable handles allows to pass A Promise handles a single event
zero or more events when an async when an async operation completes
operation completes, fails or finishes. or fails.