From bc089abd3288de2b85fe484c2feb9b3bb74caa76 Mon Sep 17 00:00:00 2001 From: John Papa Date: Sat, 22 Feb 2020 12:30:23 -0500 Subject: [PATCH] docs: add strictTemplates in place of fullTemplateTypeCheck (#35628) Co-Authored-By: Igor Minar 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 --- aio/content/guide/typescript-configuration.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aio/content/guide/typescript-configuration.md b/aio/content/guide/typescript-configuration.md index 19900e19b05..08d58b04438 100644 --- a/aio/content/guide/typescript-configuration.md +++ b/aio/content/guide/typescript-configuration.md @@ -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, + {@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.