Create Component without folder

后端 未结 3 1263
野趣味
野趣味 2021-02-15 21:39

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

3条回答
  •  粉色の甜心
    2021-02-15 22:17

    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.

提交回复
热议问题