partial.html
670 Bytes
<div class="search-box">
<p class="lbl" ng-bind="lbl"></p>
<div class="ui-select-container">
<ui-select ng-model="address" class="control">
<ui-select-match>
<p class="desc">{{$select.selected.Description}}</p>
</ui-select-match>
<ui-select-choices repeat="address in addresses" refresh="request($select.search)" refresh-delay="300" ng-click="selectAddress(address)">
{{address.description}}
</ui-select-choices>
</ui-select>
<span class="add-stop" ng-click="addStop()">add</span>
<span class="remove-stop" ng-click="removeStop($index)">remove</span>
</div>
</div>