angularjs - calling an angular function when an option is selected from list -
input type="text" placeholder="" ng-autocomplete ng-keyup="adddeliveryareas($event)" ng-model="deliveryareas.search" details="details" options="options"
i using ng-autocomplete directive. https://github.com/wpalahnuk/ngautocomplete want call angular function when address selected option list
simply use ng-change directive. angular doc function bind called everytimes change ng-model occurs.
Comments
Post a Comment