web.dev icon indicating copy to clipboard operation
web.dev copied to clipboard

Angular CLI module option --route not avaialble

Open marcorpsa opened this issue 7 years ago • 2 comments

In the article https://web.dev/route-level-code-splitting-in-angular/ There is this command ng g module nyan --module app --route nyan

With Angular CLI 8.0.3 if I run ng generate module --help I get options: --defaults When true, disables interactive input prompts for options with a default. --dry-run (-d) When true, runs through and reports activity without writing out results. --flat When true, creates the new files at the top level of the current project root. --force (-f) When true, forces overwriting of existing files. --help Shows a help message for this command in the console. --interactive When false, disables interactive input prompts. --lint-fix When true, applies lint fixes after generating the module. --module (-m) The declaring NgModule. --project The name of the project. --routing When true, creates a routing module. --routing-scope The scope for the new routing module. No --route option - what am I missing?

marcorpsa avatar Aug 28 '19 14:08 marcorpsa

@mgechev do you have any thoughts?

robdodson avatar Aug 29 '19 23:08 robdodson

@marcorpsa thanks for the interest! You're using an old version of the Angular CLI. In the post we mention that we introduced the lazy-route generator as part of version 8.1.0.

@robdodson, we can close the issue.

mgechev avatar Aug 30 '19 02:08 mgechev