Angular Language Service

The Angular Language Service is a way to get completions, errors, hints, and navigation inside your Angular templates whether they are external in an HTML file or embedded in annotations/decorators in a string. The Angular Language Service autodetects that you are opening an Angular file, reads your tsconfig.json file, finds all the templates you have in your application, and then provides language services for any templates that you open.

Autocompletion

Autocompletion can speed up your development time by providing you with contextual possibilities and hints as you type. This example shows autocomplete in an interpolation. As you type it out, you can hit tab to complete.

autocompletion

There are also completions within elements. Any elements you have as a component selector will show up in the completion list.

Error checking

The Angular Language Service can also forewarn you of mistakes in your code. In this example, Angular doesn't know what orders is or where it comes from.