Create Component without folder

后端 未结 4 1478
长发绾君心
长发绾君心 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:23

    You can use --flat flag.

    ng g c test --flat
    

    For more information follow this link

    flat = true | false

    When true creates the new files at the top level of the current project.

    Default: false

提交回复
热议问题