Create component to specific module with Angular-CLI

后端 未结 26 1671
既然无缘
既然无缘 2021-01-29 19:46

I\'m starting to use angular-cli and I\'ve already read a lot to find an answer about what I want to do...no success, so I came here.

Is there a way to create a componen

26条回答
  •  无人共我
    2021-01-29 20:06

    ng g c componentName --module=path-to-your-module-from-src-folder
    

    example:

    ng g c testComponent --module=/src/app/home/test-component/test-component.module
    

提交回复
热议问题