mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This adds string literals, number literals, `true`, `false`, `null` and
`undefined` to autocomplete results in templates.
For example, when completing an input of union type.
Component: `@Input('input') input!: 'a'|'b'|null;`
Template: `[input]="|"`
Provide `'a'`, `'b'`, and `null` as autocompletion entries.
Previously we did not include literal types because we only included
results from the component context (`ctx.`) and the template scope.
PR Close #41456
|
||
|---|---|---|
| .. | ||
| diagnostics | ||
| metadata | ||
| ngtsc | ||
| transformers | ||
| extract_i18n.ts | ||
| language_services.ts | ||
| main.ts | ||
| perform_compile.ts | ||
| perform_watch.ts | ||
| tooling.ts | ||
| typescript_support.ts | ||
| version.ts | ||