<div class='container-fluid'>
  <h4>Static arrays</h4>
    <pre>Model: {{selected}}
Selected Item: {{selectedItem}}</pre>
  <n2s-type-ahead [(ngModel)]="selected"
                 [source]="statesComplex"
                 [(selectedItem)]="selectedItem"
                 (selectedItemChange)="typeaheadOnSelect($event)"
                 [optionField]="'name'">
    <template n2s-renderer>
      {{item['name']}}
    </template>
  </n2s-type-ahead>

  <h4>Asynchronous results</h4>
    <pre>Model: {{selectedAsync