Angular AutoComplete | Auto Suggest TextBox | Syncfusion
Overview
The Angular Autocomplete is a textbox or search box component that provides a list of suggestions to select from as the user types. It has several out-of-the-box features such as data binding, filtering, grouping, autocomplete search, UI customization, accessibility, and more.

Data binding
You can bind data from different types of data sources, such as an array of primitive data, JSON data collections, or remote data sources using adaptors such as OData, OData V4, URL, JSON, and Web API. Data binding uses our data manager to manage data, and also has customization options for data requests and processing.
Filtering
The built-in filtering support includes a rich set of filtering options that is available to meet all your application needs.

Filter type
Filter data based on starts with, ends with, and contains predicates.

Custom filtering
You can customize the built-in filter query or use your own custom filter libraries to populate data.

Diacritic-sensitive search
The Angular AutoComplete Dropdown component supports diacritic-sensitive searching. This behavior can be turned on or off.

Limit suggestion items
Limit the number of suggestions to be displayed in the filtered data list.

Ignore filter text casing
You can filter data with or without case sensitivity.

Minimum filter characters
Set the filter length to begin filtering and populating the data.


Autofill search
The Angular AutoComplete component has an autofill search option that completes the word that the user types based on the suggestion text, allowing the user to search for items easily.

UI customization
Customize the appearance of the AutoComplete suggestion list using templates.

Item template
Define a custom appearance for each suggestion item by using item templates.

Design a header for the suggestion list using the header template.

Design a custom footer for the suggestion list using the footer template.
![]()
Icons
Add icons to each suggestion item, like countries with flag icons.

Empty record
Provide a custom message with a custom appearance when there are no search suggestions to display.
Suggestion list
Generate a suggestion list in the dropdown of the angular material autocomplete for users as they type in the input textbox.

Dimension customization
The width and height of the suggestion list is adjustable.

Hide or avoid suggestion list
Hide the default suggestion list and bind the search result onto some other component, such as a data grid.

Forms support
Seamlessly supports HTML5 forms, Angular template-driven forms, and Angular reactive forms.
Mobile-friendly, responsive UI
Provides a responsive mode that displays an adaptive redesigned UI for mobile devices that recognizes touch gestures.
Web accessibility
- Fully supports WAI-ARIA accessibility standards that make the AutoComplete component accessible to screen readers and assistive devices.
- Follows WAI-ARIA best practices for implementing keyboard interaction.
- Designs the UI visual elements such as foreground color, background color, line spacing, text, and images based on the WCAG 2.0 standard.
- Supports right-to-left (RTL) text direction for users working with RTL languages like Hebrew, Arabic, or Persian.
Developer-friendly APIs
Developers can customize all UI elements and control their behaviors according to the end user’s requirements using the rich set of client-side APIs.
Angular AutoComplete Code Example
Easily get started with the Angular AutoComplete using a few simple lines of HTML and TS code example as demonstrated below. Also explore our Angular AutoComplete Example that shows you how to render and configure a AutoComplete in Angular.
<div class="control-section"> <ejs-autocomplete id='atcelement'></ejs-autocomplete> </div>
import { Component } from '@angular/core'; @Component({ selector: 'app-root', // specifies the template string for the AutoComplete component template: `<ejs-autocomplete id='atcelement' [dataSource]='sportsData'></ejs-autocomplete>` }) export class AppComponent { constructor() { } // defined the array of data public sportsData: string[] = ['Badminton', 'Basketball', 'Cricket', 'Football', 'Golf', 'Gymnastics', 'Hockey', 'Rugby', 'Snooker', 'Tennis']; }
Transform your applications today by downloading our free evaluation version
Syncfusion Angular Resources