Skip to content

How to i access latitude and longitude in controller #28

@amitpatil321

Description

@amitpatil321

I tried with
$scope.watch on address variable but that didnt work.

$scope.$watch('address', function () { console.log($scope.address); }, true);

i am working on script which shows neatby atms, script auto detects users location to show nearby atms as well as user can check atms in other areas/places using autocomplete plugin as well.

for that purpose i want to access address variable. But i couldn't.
if u use <span class="help-block"><b>Place id: </b>{{address.components.placeId}}</span> i can see values there but dont know why it doesnt show.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions