2

input type="text" placeholder="" ng-autocomplete ng-keyup="addDeliveryAreas($event)" ng-model="deliveryareas.search" details="details" options="options"

I am using ng-autocomplete directive. https://github.com/wpalahnuk/ngAutocomplete I want to call an angular function when an address is selected from option list

2 Answers 2

0

Simply use the ng-change directive. angular doc The function you will bind to it will be called everytimes a change to the ng-model occurs.

Sign up to request clarification or add additional context in comments.

Comments

0

I tried several things.. ngblur="myfunction()" worked for my use case

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.