为什么 angular 2 cli generate component 创建共享文件夹 index.ts
Why does angular 2 cli generate component create a shared folder with index.ts
当我使用 angular 2 cli 生成组件时:
ng g 组件 "test" 它创建一个文件夹:
test
|__Shared
| |__Index.ts
|__test.component.html
|__test.component.css
|__etc...
什么是共享文件夹?我的意思是我应该在 html 和 css 文件之间共享什么?或者在 test.component.ts 和 test.component.css 之间?
我觉得为每个组件创建一个共享文件夹毫无意义。
谁能给我解释一下?!
当我使用 angular 2 cli 生成组件时:
ng g 组件 "test" 它创建一个文件夹:
test
|__Shared
| |__Index.ts
|__test.component.html
|__test.component.css
|__etc...
什么是共享文件夹?我的意思是我应该在 html 和 css 文件之间共享什么?或者在 test.component.ts 和 test.component.css 之间?
我觉得为每个组件创建一个共享文件夹毫无意义。
谁能给我解释一下?!