Which type of folder structure should be used with Angular 2?

后端 未结 9 1683
慢半拍i
慢半拍i 2021-01-29 18:45

I am an Angular 1 developer that is starting to learn about Angular 2. There are a lot of different types of folder structure methods depending on the training material. I am

9条回答
  •  爱一瞬间的悲伤
    2021-01-29 19:20

    I am going to use this one. Very similar to third one shown by @Marin.

    app
    |
    |___ images
    |
    |___ fonts
    |
    |___ css
    |
    |___ *main.ts*
    |   
    |___ *main.component.ts*
    |
    |___ *index.html*
    |
    |___ components
    |   |
    |   |___ shared
    |   |
    |   |___ home
    |   |
    |   |___ about
    |   |
    |   |___ product
    |
    |___ services
    |
    |___ structures
    

提交回复
热议问题