Problem while creating custom orderlist with search using angular

Skip to first unread message

Dharamveer Dhiman

May 12, 2015, 5:30:27 PM5/12/15
so basically i am using rest api to get list addresses.

A user type the start of the address and a list of available addresses will be shown with that start.

So  there is a text box where user will type the start of the address and a list of available options will be created as an orderlist.

Now problem is i am not able to select option from this order list eventhough i can scroll up and down.

Below is the code:

<input type="text" class="ea-input" ng-keyup="searchAddress()" placeholder="Luotsikatu 23 b 83, 00500" ng-model="inputAddress" ng-value="ngValue">
<div class="ea-button">HAE</div>
<ol ng-model="key" id="addressResults" address-search></ol>

.directive('addressSearch', function() {
return {
template:'<li ng-repeat="address in addresses" selection-model>{{address.displayAddress}} </li>'

Any help will be appreciated :)

Reply all
Reply to author
0 new messages