A typeahead example that gets values from a static
string[]
debounceTime operatorModel: {{ model | json }}
It is possible to get the focus events with the current input value to emit results on focus with a great flexibility. In this simple example, a search is done no matter the content of the input:
Model: {{ model2 | json }}
A typeahead example that uses a formatter function for string results
Model: {{ model3 | json }}
A typeahead example that gets values from the
Wikipedia Search
debounceTime operatordo operatordistinctUntilChanged operatorswitchMap operatorcatch operator to display an error message in case of
connectivity issue
Model: {{ model4 | json }}
A typeahead example that uses custom template for results display and uses object as a model
Model: {{ model5 | json }}
This typeahead shows a hint when the input matches because the default values have been customized.