-
Notifications
You must be signed in to change notification settings - Fork 165
Open
Description
To keep track of the changes to the Places search in the input box, I am using $watch on the ng-model. In the $watch function, I am assigning the longitude and latitude as:
$scope.map.center.latitude = $scope.mapdetails.geometry['k'];
$scope.map.center.longitude = $scope.mapdetails.geometry['A'];
If I do not check on the validity of mapdetails, I get a 'undefined' error. But I realized that even if I select an item from the autocomplete list, I still see that 'mapdetails' is returned as empty. So, I am never able to retrieve the results in the $watch function.
What would be the proper way to act after an item is selected from the dropdown autocomplete list? I have tried using ng-change too, but the same result
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels