ng g c module option code example
Example 1: skip import angular 6
ng g component component-name --skip-import
Example 2: More than one module matches
Specify the module using the --module parameter.
For example, if the main module is app.module.ts, run this:
ng g c new-component --module app
Or if you are in an other directory then
ng g c component-name --module ../
Example 3: ng g c in module
ng generate module component-name --module=any-parent-module --route=route-path