ngAutocomplete icon indicating copy to clipboard operation
ngAutocomplete copied to clipboard

emit "ngAutocomplete:place_changed" with Google's "place_changed" event

Open thiphariel opened this issue 9 years ago • 2 comments

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/

thiphariel avatar Apr 09 '15 08:04 thiphariel

+1

fabianoroberto avatar Nov 04 '15 16:11 fabianoroberto

+1

ITachiLab avatar Sep 06 '16 16:09 ITachiLab