ngAutocomplete
ngAutocomplete copied to clipboard
how to get the lat lng in the result
I want to get the lat and lng in the result, I dont want to use details as i know about that option.
{{details.geometry.location}} returns latitude and longitude.
How I can get the postal code?
I can use this to get the latlng object in the view, but not the controller. Does anyone know how I can get it in the controller? Or pass it from the view to the controller?
make details=any_controller_scope_variable . Then get all details from it ex. {{any_controller_scope_variable.geometry.location.lat()}}
that is what I did and it is not working at all...I want to save this number into a variable in the controller.
karlpower6, did you ever figured it out?