Start up
Create a module with routing
For create new module you can use following command from your root directory.
module-name
is a name of your desire module.
ng generate module <module-name> --routing
e.g.
ng generate module employee --routing
Add a component to the feature module
For add new component in module you can use following command from your root
directory. module-name
is a name of your desire module &
component-name
is a name of your component.
ng generate component <module-name>/<component-name>
e.g.
ng generate component employee/salary;
Referral Url
Type | URL |
---|---|
Angular | https://angular.io/guide/lazy-loading-ngmodules |