angular-compiler-options.md (angular-11.0.1) | : | angular-compiler-options.md (angular-11.0.2) | ||
---|---|---|---|---|
skipping to change at line 191 | skipping to change at line 191 | |||
For library projects generated with the CLI, the dev configuration default is `t rue`. | For library projects generated with the CLI, the dev configuration default is `t rue`. | |||
### `strictInjectionParameters` | ### `strictInjectionParameters` | |||
When `true` (recommended), reports an error for a supplied parameter whose injec tion type cannot be determined. When `false` (currently the default), constructo r parameters of classes marked with `@Injectable` whose type cannot be resolved produce a warning. | When `true` (recommended), reports an error for a supplied parameter whose injec tion type cannot be determined. When `false` (currently the default), constructo r parameters of classes marked with `@Injectable` whose type cannot be resolved produce a warning. | |||
When you use the CLI command `ng new --strict`, it is set to `true` in the gener ated project's configuration. | When you use the CLI command `ng new --strict`, it is set to `true` in the gener ated project's configuration. | |||
### `strictTemplates` | ### `strictTemplates` | |||
When `true`, enables [strict template type checking](guide/template-typecheck#st rict-mode) in Angular version 9. Strict mode is only available when using [Ivy]( guide/ivy). | When `true`, enables [strict template type checking](guide/template-typecheck#st rict-mode). Strict mode is only available when using [Ivy](guide/ivy) (Angular v ersion 9 and later). | |||
Additional strictness flags allow you to enable and disable specific types of st rict template type checking. See [troubleshooting template errors](guide/templat e-typecheck#troubleshooting-template-errors). | Additional strictness flags allow you to enable and disable specific types of st rict template type checking. See [troubleshooting template errors](guide/templat e-typecheck#troubleshooting-template-errors). | |||
When you use the CLI command `ng new --strict`, it is set to `true` in the gener ated project's configuration. | When you use the CLI command `ng new --strict`, it is set to `true` in the gener ated project's configuration. | |||
### `trace` | ### `trace` | |||
When `true`, prints extra information while compiling templates. Default is `fal se`. | When `true`, prints extra information while compiling templates. Default is `fal se`. | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |