本来应该发 Angular 节点的,但那里太冷清了就挪过来了
1 )
.\layout\layout.component.[css|ts|html|spec.ts]
.\layout\side-nav.component.[css|ts|html|spec.ts]
.\layout\top-bar.component.[css|ts|html|spec.ts]
还是 2 )
.\layout\layout.component.[css|ts|html|spec.ts]
.\layout\side-nav\side-nav.component.[css|ts|html|spec.ts]
.\layout\top-bar\top-bar.component.[css|ts|html|spec.ts]
又或是 3 ):
.\layout\layout\layout.component.[css|ts|html|spec.ts]
.\layout\side-nav\side-nav.component.[css|ts|html|spec.ts]
.\layout\top-bar\top-bar.component.[css|ts|html|spec.ts]
或者还有第 4 种?
1
a935855375 2022 年 4 月 18 日
第二种,结构层次最舒服
|
2
Chism 2022 年 4 月 18 日 via Android
react 和 vue 我会,这样 css 等自用的文件避免跟其它混淆,ag 没用过。。
|
3
shakaraka PRO 2.每个组件一个目录,或者每个模块一个目录,针对 ng
|
4
susan0007 2022 年 4 月 19 日
我用 react 会选择第一种,因为只有一个 tsx 文件。
对于组件文件数量大于 2 的,我会选第二种。 |
5
linkopeneyes 2022 年 4 月 20 日
第二种啊
|
6
renhou 2022 年 4 月 28 日
比较常用第二种
|