Versions
Angular CLI: 1.5.5
Node: 6.9.5
OS: win32 x64
Angular: 5.0.4
Feature request
Usually all of our feature modules are lazy loaded.
So the developer has to run at least two commands to create a new module to get our default file layout.
ng g m Foo -- routing
ng g c Foo --flat
Then the developer has to add a default route to the new modules routing module as well as the lazy loading route definition to the nearest parent module.
As the syntax and relative paths are allways the same, wouldn't it be possible to add some flags to combine those stepts?
maybe like this:
ng g module Foo --routing --component --lazy
or even simpler
ng g feature Foo (--lazy)


Versions
Feature request
Usually all of our feature modules are lazy loaded.
So the developer has to run at least two commands to create a new module to get our default file layout.
ng g m Foo -- routing
ng g c Foo --flat
Then the developer has to add a default route to the new modules routing module as well as the lazy loading route definition to the nearest parent module.
As the syntax and relative paths are allways the same, wouldn't it be possible to add some flags to combine those stepts?
maybe like this:
ng g module Foo --routing --component --lazy
or even simpler
ng g feature Foo (--lazy)