Basic Usage

Option {{item}}

Use md-autocomplete to search for matches from local or remote data sources.

{{item.display}} No matches found for "{{ctrl.searchText}}".
Simulate query for results? Disable caching of queries? Disable the input?

By default, md-autocomplete will cache results when performing a query. After the initial call is performed, it will use the cached results to eliminate unnecessary server requests or lookup logic. This can be disabled above.

Custom Template

Option {{item}}

Use <md-autocomplete> with custom templates to show styled autocomplete results.

{{item.name}}

Floating Label

Option {{item}}

The following example demonstrates floating labels being used as a normal form element.

{{item.display}}
You must have a favorite state.
Your entry is not long enough.
Your entry is too long.