Skip to content

Commit 24ce70a

Browse files
atscottKeen Yee Liau
authored andcommitted
docs: add note about compiler options to readme
1 parent 8ca8049 commit 24ce70a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ and external templates including:
1616

1717
Download the extension from [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Angular.ng-template).
1818

19+
## Configuring compiler options for the Angular Language Service
20+
21+
The Angular Language Service uses the same set of options that are used to compile the application.
22+
To get the most complete information in the editor, set the `strictTemplates` option in `tsconfig.json`,
23+
as shown in the following example:
24+
25+
```
26+
"angularCompilerOptions": {
27+
"strictTemplates": true
28+
}
29+
```
30+
31+
For more information, see the [Angular compiler options](https://angular.io/guide/angular-compiler-options) guide.
32+
1933
## Versioning
2034

2135
The language service extension relies on the `@angular/language-service` and `typescript` packages

0 commit comments

Comments
 (0)