Create component to specific module with Angular-CLI

后端 未结 26 1973
既然无缘
既然无缘 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:26

    I use this particular command for generating components inside a module.

    ng g c /
    

    This command will generate component local to the module. or You can change directory first by typing.

    cd 
    

    and then create component.

    ng g c 
    

    Note: code enclosed in <> represent user specific names.

提交回复
热议问题