docs: add instructions for opting into latest Language Service (#41600)

PR Close #41600
This commit is contained in:
Kapunahele Wong 2021-04-13 13:16:06 -04:00 committed by Jessica Janiuk
parent c3614662cb
commit 6611d5c1c9
1 changed files with 14 additions and 0 deletions

View File

@ -4,6 +4,20 @@ The Angular Language Service provides code editors with a way to get completions
hints, and navigation inside Angular templates. hints, and navigation inside Angular templates.
It works with external templates in separate HTML files, and also with in-line 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:
<code-example language="json">
"angularCompilerOptions": {
"strictTemplates": true
}
</code-example>
For more information, see the [Angular compiler options](guide/angular-compiler-options) guide.
## Features ## Features
Your editor autodetects that you are opening an Angular file. Your editor autodetects that you are opening an Angular file.