angular cli 에서 component를 생성하는데
만약 ng g c testList 라고 그냥 생성하게 되면
app/test-list/test-list.component.ts 이렇게 생성이 된다
하지만 test-list 폴더를 생성하고 싶지 않을 때가 있다
이럴 때는 어떻게 할까 ?
https://github.com/angular/angular-cli/wiki/generate-component
위의 문서에서 나와있듯이
flat 옵션을 사용하면 된다
ng g c testList --flat