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:
<div>
<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>
</div>
angular.module("of-lead-netti")
.directive('addressSearch', function() {
return {
template:'<li ng-repeat="address in addresses" selection-model>{{address.displayAddress}} </li>'
};
});
Any help will be appreciated :)