Create Component without folder

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

    You can create components anywhere inside the app folder without using commands if you are using any IDE for development like Visual Studio Code or Atom. Use the new file icon or New File option from File Menu,

    but I would suggest you use a folder structure for better maintenance

提交回复
热议问题