Create Component without folder

后端 未结 4 1493
长发绾君心
长发绾君心 2021-02-15 21:47

I need to create a component without the folder. I am using Angular-Cli command ng g c testing to create the component. But, the command creates an folder wrapper f

4条回答
  •  孤独总比滥情好
    2021-02-15 22:11

    ng g c test1 --flat --inline-template --inline-style

    • --flat allows us to create the new component without new folder.
    • --inline allows us to keep the template/style in the component file itself instead of creating separate file for those.

提交回复
热议问题