Create Component without folder

后端 未结 3 1266
野趣味
野趣味 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:28

    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

提交回复
热议问题