Protected ReadonlyactiveKeyboard-highlighted index inside the suggestions list.
ReadonlyariaAccessible label forwarded to the native <input> as aria-label.
ReadonlydatasourceDatasource that provides completion suggestions.
ReadonlydisabledWhether the control is disabled.
ReadonlydisplayFunction that returns a display string for a selected item.
Used for chips (multiple mode) and the input value (single mode).
Defaults to String(item).
Protected ReadonlyisWhether the suggestion popup is visible.
ReadonlyitemFired when a chip / item is removed in multiple mode.
ReadonlyitemFired when a suggestion is picked from the popup.
ReadonlyitemConsumer-projected template for rendering each suggestion item.
Protected ReadonlylistboxUnique listbox id for ARIA.
ReadonlyminMinimum number of characters before a query is executed.
Defaults to 1.
ReadonlymultipleWhether to allow multiple selections. When false (default),
picking an item closes the popup and replaces the value.
When true, picked items accumulate as chips above the input.
ReadonlyplaceholderPlaceholder text shown when the input is empty.
Protected ReadonlyqueryRaw text in the input.
Protected ReadonlysuggestionsThe list of current suggestions from the datasource.
ReadonlytrackOptional trackBy function for identity comparison. When provided, duplicate-checks use this key.
ReadonlyvalueCurrently selected item(s). Two-way bindable via [(value)].
Autocomplete / type-ahead component with optional custom item template.
Renders a text input that, on every keystroke, queries the supplied AutocompleteDatasource and shows a popup list of matching items.
Consumers project an
<ng-template let-item>to control how each suggestion is rendered. When no template is provided the component falls back toString(item).Selection is exposed as a two-way
[(value)]binding carrying the currently selected items.Zero external dependencies — only Angular core +
@angular/common.Example