This tutorial assuming all prerequisite to start an Angular 4 application has been properly setup with Angular cli.
To create angular 4 module, follow the steps below.
1. navigate to the root directory of your Angular 4 application.
2. run the following command to generate a new module class
To create angular 4 module, follow the steps below.
1. navigate to the root directory of your Angular 4 application.
2. run the following command to generate a new module class
ng generate module moduleName
eg. ng generate module ferrari
3. run the following command to generate a new component under the above module ng generate component moduleName/componentName
eg. ng generate component ferrari/ferrari-list
4. create a routing class in the same directory with module class
eg. ferrari-routing.module.ts