Typeahead
Basic Typeahead

When initializing a typeahead, you pass the plugin method one or more datasets. The source of a dataset is responsible for computing a set of suggestions for a given query.

Typeahead with open on focus

It is possible to get the focus events with the current input value to emit results on focus with a great flexibility.

Typeahea with formatted results

A typeahead example that uses a formatter function for string results. For example display search results in upper case.

Typeahead with configuration

For more advanced use cases, Typeahead with configuration gives flexibility. This typeahead shows a hint when the input matches because the default values have been customized.

Typeahead with Service

A typeahead example which gets the results from the service.

Typeahead with custom template

A typeahead example that uses a custom template for results display, an object as the model, and the highlight directive to highlight the term inside the custom template.