What is @angular/language-service?
The @angular/language-service package provides a way to get completions, errors, hints, and navigation inside Angular templates. It works with both external and inline templates and is used primarily in integrated development environments (IDEs) and text editors to enhance the development experience with Angular applications.
What are @angular/language-service's main functionalities?
Autocompletion
Provides autocompletion suggestions for Angular template syntax, including bindings, directives, components, and template variables.
No specific code sample can be provided as this functionality is integrated into IDEs and leverages the language service API to provide autocompletion suggestions.
Error Checking
Highlights errors in Angular templates, such as type errors, missing directives, and incorrect bindings, helping developers to identify and fix issues more quickly.
No specific code sample can be provided as this functionality is integrated into IDEs and leverages the language service API to highlight errors in Angular templates.
Navigation and Refactoring
Enables features like 'Go to definition' for components, directives, and template variables, and supports refactoring operations such as renaming symbols.
No specific code sample can be provided as this functionality is integrated into IDEs and leverages the language service API to enable features like go to definition and refactoring.
Other packages similar to @angular/language-service
typescript
While not specifically for Angular, TypeScript is often used alongside Angular for type checking and editor integrations. TypeScript provides language services that offer similar features (like autocompletion and error checking) but for TypeScript code rather than Angular templates.
vetur
Vetur is a Vue tooling for VSCode, offering features similar to @angular/language-service but for Vue.js applications. It provides syntax highlighting, snippets, Emmet, linting/error checking, formatting, auto completion, debugging, and more for Vue components.
eslint-plugin-angular
This package is an ESLint plugin that contains a set of rules for static code analysis of Angular applications. While it doesn't offer real-time error checking or autocompletion within templates, it provides a similar goal of improving code quality and catching errors.
18.2.0 (2024-08-14)
compiler
| Commit | Type | Description |
| -- | -- | -- |
| c8e2885136 | feat | Add extended diagnostic to warn when there are uncalled functions in event bindings (#56295) (#56295) |
compiler-cli
| Commit | Type | Description |
| -- | -- | -- |
| 98ed5b609e | feat | run JIT transform on classes with jit: true
opt-out (#56892) |
| c76b440ac0 | fix | add warning for unused let declarations (#57033) |
| 0f0a1f2836 | fix | emitting references to ngtypecheck files (#57138) |
| 6c2fbda694 | fix | extended diagnostic visitor not visiting template attributes (#57033) |
| e11c0c42d2 | fix | run JIT transforms on @NgModule
classes with jit: true
(#57212) |
core
| Commit | Type | Description |
| -- | -- | -- |
| f7918f5272 | feat | Add 'flush' parameter option to fakeAsync to flush after the test (#57239) |
| fab673a1dd | feat | add ng generate schematic to convert to inject (#57056) |
| 7919982063 | feat | Add whenStable helper on ApplicationRef (#57190) |
| 3459289ef0 | feat | bootstrapModule can configure NgZone in providers (#57060) |
| 296216cbe1 | fix | Allow hybrid CD scheduling to support multiple "Angular zones" (#57267) |
| 8718abce90 | fix | Deprecate ignoreChangesOutsideZone option (#57029) |
| 827070e331 | fix | Do not run image performance warning checks on server (#57234) |
| ca89ef9141 | fix | handle shorthand assignment in the inject migration (#57134) |
| 5dcdbfcba9 | fix | rename the equality function option in toSignal (#56769) |
| 2a4f488a6c | fix | warnings for oversized images and lazy-lcp present with bootstrapModule (#57060) |
language-service
| Commit | Type | Description |
| -- | -- | -- |
| 4bb558ab0c | feat | support writing code refactorings (#56895) |
| 7663debce1 | perf | quick exit if no code fixes can exist (#57000) |
migrations
| Commit | Type | Description |
| -- | -- | -- |
| 147eee4253 | feat | add migration to convert standalone component routes to be lazy loaded (#56428) |
| cb442a0ce7 | fix | account for parameters with union types (#57127) |
| 166166d79e | fix | add alias to inject migration (#57127) |
| b1a9d0f4de | fix | avoid duplicating comments when generating properties (#57367) |
| 5d76401ff5 | fix | preserve optional parameters (#57367) |
| 1cf616f671 | fix | remove generic arguments from the injected type reference (#57127) |
| ba0df30ef6 | fix | remove unused imports in inject migration (#57179) |
| aae9646a1b | fix | unwrap injected forwardRef (#57127) |
| 604270619a | perf | speed up signal input migration by combining two analyze phases (#57318) |
router
| Commit | Type | Description |
| -- | -- | -- |
| 6c76c91e15 | feat | Add defaultQueryParamsHandling to router configuration (#57198) |
<!-- CHANGELOG SPLIT MARKER -->
<a name="18.1.5"></a>