From 6611d5c1c9cf382bb8f5fb78c4e8bfa8b14f1578 Mon Sep 17 00:00:00 2001 From: Kapunahele Wong Date: Tue, 13 Apr 2021 13:16:06 -0400 Subject: [PATCH] docs: add instructions for opting into latest Language Service (#41600) PR Close #41600 --- aio/content/guide/language-service.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/aio/content/guide/language-service.md b/aio/content/guide/language-service.md index cd88ac33e7..ba0ec323ee 100644 --- a/aio/content/guide/language-service.md +++ b/aio/content/guide/language-service.md @@ -4,6 +4,20 @@ The Angular Language Service provides code editors with a way to get completions hints, and navigation inside Angular templates. It works with external templates in separate HTML files, and also with in-line templates. +## Configuring compiler options for the Angular Language Service + +To enable the latest Language Service features, set the `strictTemplates` option in `tsconfig.json` by setting `strictTemplates` to `true,` as shown in the following example: + + + + "angularCompilerOptions": { + "strictTemplates": true + } + + + +For more information, see the [Angular compiler options](guide/angular-compiler-options) guide. + ## Features Your editor autodetects that you are opening an Angular file.