https://github.com/hellomahe/angular-code-splitting
Demo project which shows how to lazy load modules in Angular
https://github.com/hellomahe/angular-code-splitting
angular codesplitting javascript lazyloading
Last synced: 13 days ago
JSON representation
Demo project which shows how to lazy load modules in Angular
- Host: GitHub
- URL: https://github.com/hellomahe/angular-code-splitting
- Owner: hellomahe
- Created: 2018-11-04T06:06:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-11T12:26:00.000Z (over 7 years ago)
- Last Synced: 2025-07-08T04:38:56.976Z (10 months ago)
- Topics: angular, codesplitting, javascript, lazyloading
- Language: TypeScript
- Homepage: https://hellomahe.me/lazy-loading-modules-in-angular
- Size: 111 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shop
This is a demo project to show how lazy loading has been implemented in Angular. Post related to this demo is in my blog post https://hellomahe.me/lazy-loading-modules-in-angular.
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.4.
## 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.
## If your app is deployed in CDN then use --deploy-url in build command.
`ng build --deploy-url=https://cdn.example.com`
## Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).