docs: add strictTemplates in place of fullTemplateTypeCheck (#35628)
Co-Authored-By: Igor Minar <iminar@google.com> Updating the recommended defaults for template typechecking strictness to the most strict in order to catch most of the errors at compile time. See https://angular.io/guide/template-typecheck for more info. PR Close #35628
This commit is contained in:
parent
c94a33c525
commit
bc089abd32
|
@ -53,7 +53,7 @@ The initial `tsconfig.json` for an Angular app typically looks like the followin
|
|||
]
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"fullTemplateTypeCheck": true,
|
||||
"strictTemplates": true,
|
||||
"strictInjectionParameters": true
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +62,6 @@ The initial `tsconfig.json` for an Angular app typically looks like the followin
|
|||
|
||||
{@a noImplicitAny}
|
||||
|
||||
|
||||
### *noImplicitAny* and *suppressImplicitAnyIndexErrors*
|
||||
|
||||
TypeScript developers disagree about whether the `noImplicitAny` flag should be `true` or `false`.
|
||||
|
@ -96,6 +95,7 @@ For more information about how the TypeScript configuration affects compilation,
|
|||
|
||||
</div>
|
||||
|
||||
|
||||
{@a typings}
|
||||
|
||||
## TypeScript typings
|
||||
|
@ -146,7 +146,6 @@ For instance, to install typings for `jasmine` you run `npm install @types/jasmi
|
|||
|
||||
{@a target}
|
||||
|
||||
|
||||
### *target*
|
||||
|
||||
By default, the target is `es2015`, which is supported only in modern browsers. You can configure the target to `es5` to specifically support legacy browsers. [Differential loading](guide/deployment#differential-loading) is also provided by the Angular CLI to support modern, and legacy browsers with separate bundles.
|
||||
|
|
Loading…
Reference in New Issue