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": {
|
"angularCompilerOptions": {
|
||||||
"fullTemplateTypeCheck": true,
|
"strictTemplates": true,
|
||||||
"strictInjectionParameters": true
|
"strictInjectionParameters": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -62,7 +62,6 @@ The initial `tsconfig.json` for an Angular app typically looks like the followin
|
|||||||
|
|
||||||
{@a noImplicitAny}
|
{@a noImplicitAny}
|
||||||
|
|
||||||
|
|
||||||
### *noImplicitAny* and *suppressImplicitAnyIndexErrors*
|
### *noImplicitAny* and *suppressImplicitAnyIndexErrors*
|
||||||
|
|
||||||
TypeScript developers disagree about whether the `noImplicitAny` flag should be `true` or `false`.
|
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>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{@a typings}
|
{@a typings}
|
||||||
|
|
||||||
## TypeScript typings
|
## TypeScript typings
|
||||||
@ -146,7 +146,6 @@ For instance, to install typings for `jasmine` you run `npm install @types/jasmi
|
|||||||
|
|
||||||
{@a target}
|
{@a target}
|
||||||
|
|
||||||
|
|
||||||
### *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.
|
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…
x
Reference in New Issue
Block a user