ngAutocomplete
ngAutocomplete copied to clipboard
emit "ngAutocomplete:place_changed" with Google's "place_changed" event
I know there is already a PR about that (https://github.com/penghou620/ngAutocomplete/commit/10e8d9fa2ab951f370566ced0a868857c5dfbb96) but I think this one has a different approach, I prefer get the sended result directly from the emit event than take it back from the scope.
// Simply get the directive result on this event
$scope.$on('ngAutocomplete:place_changed', function(result) {
$log.info('Google's places results : ', result);
});
It's fate is in your hands \o/
+1
+1