A
A
Alexander Sharomet2017-08-11 22:38:21
JavaScript
Alexander Sharomet, 2017-08-11 22:38:21

Why does angular cli create a directory when creating a component?

Hello.
why when you create a component in angular cli it creates a folder with its name and puts the component itself in it?
ng gc test
instead of just creating test.componen.ts
it creates
test/test.component.ts
How to fix it?
thanks.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Coder321, 2017-08-11
@Coder321

Apart from the .ts file itself, it creates .html and .scss. Do you want to dump everything on the heap? A crazy idea, of course, but the owner is a master, I think you will find the answer here documentation

N
Negwereth, 2017-08-12
@Negwereth

Well, you can use the --flat key, then there will be no folder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question