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?
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?