0
Q:

npm generate component component name command skip-import

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 ../
1
ng g c new-component --module app
//Or if you are in an other directory then
ng g c component-name --module ../
1
ng g c componentName --module app (if your module is app)
0

New to Communities?

Join the community