In this video we will discuss generating modules in Angular CLI.
To generate a module we use
ng generate module moduleName or ng g s moduleName
To register our module with the AppModule
ng generate module moduleName -module=app.module
The above command can also be rewritten using shortcut
ng g s moduleName -m=app.module
If you want the spec file, simply set --spec=true
ng g s moduleName --spec=true
If you don't want the dedicated folder for new module set --flat option to true as shown below.
ng g s moduleName --flat=true
Click Subscribe for More Videos...
On this page of the site you can watch the video online AngularJS 4 Tutorial: 07. How to create modules in angular cli with a duration of hours minute second in good quality, which was uploaded by the user StepByStep 06 February 2018, share the link with friends and acquaintances, this video has already been watched 345 times on youtube and it was liked by 4 viewers. Enjoy your viewing!