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:

- on empty input all options will be taken
- otherwise options will be filtered against the search term
- it will limit the display to 10 results in all cases

Search for a state:

    Model: {{ model | json }}