Please provide us with the following information:
- OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac OSX (El Capitan?)- Versions. Please run
ng --version
. If there's nothing outputted, please
run in a Terminal:
node --version
And paste the result here.
angular-cli: 1.0.0-beta.10
node: 6.3.1
os: darwin x64
generated app with the CLI tool.
every time I run ng g component my-ComponentName it generates a new directory. I do not always want a directory per component.
That is the intended default behaviour. You can use the -- flat
flag to not create this folder though.
it's --flat
there is no space
e.g ng g c login --flat
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
That is the intended default behaviour. You can use the
-- flat
flag to not create this folder though.