Angular-cli: Flag to generate a module and add it to lazyModules in angular.json

Created on 8 Feb 2019  路  4Comments  路  Source: angular/angular-cli

馃殌 Feature request

Need a flag that can generate the module and add it's path to the angular.json's lazyModules array

Command (mark with an x)


- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [x] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description

A clear and concise description of the problem or missing capability...
Currently I have to generate a module, and manually add the whole path to lazyModules array in the angular.json

Describe the solution you'd like

ng generate module widget --lazy-module

Describe alternatives you've considered

Have you considered any alternative solutions or workarounds?

schematicangular feature

Most helpful comment

Thanks for requesting this. This is something that we @mgechev is currently working on.

All 4 comments

Thanks for requesting this. This is something that we @mgechev is currently working on.

Any updates on this @alan-agius4 @mgechev?

This feature has been added in Angular CLI version 8.1

More info can be found here: http://angular.io/guide/lazy-loading-ngmodules

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._

Was this page helpful?
0 / 5 - 0 ratings