From 136acdfab62767f106c233f86bb47a7d2682ff00 Mon Sep 17 00:00:00 2001 From: Douglas Parker Date: Wed, 8 Jul 2020 18:27:30 -0700 Subject: [PATCH] docs: correct flag default values in `--strict` (#37982) Docs state that `strictInjectionParameters` is true by default in `ng new`, however this is not the case in `10.0.1`. It is only set when `--strict` is provided. Clarified that the `--strict` flag is required. `strictTemplates` does not mention anything about `--strict`, so I included a similar point that it is `true` when a new project is generated with `--strict`. PR Close #37982 --- aio/content/guide/angular-compiler-options.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aio/content/guide/angular-compiler-options.md b/aio/content/guide/angular-compiler-options.md index 79b39fd8e9..90101d8eff 100644 --- a/aio/content/guide/angular-compiler-options.md +++ b/aio/content/guide/angular-compiler-options.md @@ -186,7 +186,7 @@ For library projects generated with the CLI, the dev configuration default is `t When `true` (recommended), reports an error for a supplied parameter whose injection type cannot be determined. When `false` (currently the default), constructor parameters of classes marked with `@Injectable` whose type cannot be resolved produce a warning. -When you use the CLI command `ng new`, it is set to `true` by default in the generated project's configuration. +When you use the CLI command `ng new --strict`, it is set to `true` in the generated project's configuration. ### `strictTemplates` @@ -194,6 +194,7 @@ When `true`, enables [strict template type checking](guide/template-typecheck#st Additional strictness flags allow you to enable and disable specific types of strict template type checking. See [troubleshooting template errors](guide/template-typecheck#troubleshooting-template-errors). +When you use the CLI command `ng new --strict`, it is set to `true` in the generated project's configuration. ### `trace`