Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to check in controller that specific prediction is clicked or not? #130

Open
rangrasjay opened this issue Sep 24, 2019 · 0 comments
Open

Comments

@rangrasjay
Copy link

Suppose we are using:
<input class="form-control" g-places-autocomplete ng-model="place" ng-enter="myFunc(place)"/>

myFunc is the function in the controller which will use geoCode API. My issue is, I am not able to identify from where 'enter' was clicked. For example, If I am typing an address and receiving predictions and what happening is both functions are been called, one from the directive and other from the ng-enter.

How I would be able to check whether enter key was pressed from prediction or from prediction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant