You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: