| 123456789101112131415161718 |
- <div class="autocomplete {{ attrs.class }}" id="{{ attrs.id }}">
- <input
- type="text"
- ng-model="searchParam"
- placeholder="{{ attrs.placeholder }}"
- class="{{ attrs.inputclass }}"
- id="{{ attrs.inputid }}"/>
- <ul ng-show="completing">
- <li
- suggestion
- ng-repeat="suggestion in suggestions | filter:searchFilter | orderBy:'toString()' track by $index"
- index="{{ $index }}"
- val="{{ suggestion }}"
- ng-class="{ active: ($index === selectedIndex) }"
- ng-click="select(suggestion)"
- ng-bind-html="suggestion | highlight:searchParam"></li>
- </ul>
- </div>
|