Code Monkey home page Code Monkey logo

Comments (8)

vivekm26 avatar vivekm26 commented on May 23, 2024

In your markup use details attr i.e

In your controller access it by $scope.detail . $scope.detail will return a detailed JSON response you can parse from that.
var lat = $scope.detail.geometry.B;
var long = $scsope.detail.geometry.k;

from ngautocomplete.

czieler avatar czieler commented on May 23, 2024

I've tried doing this and it doesn't seem to work. It seems like the properties set in the ngautocomplete.js aren't being set on the $scope in the controller.

from ngautocomplete.

dam1 avatar dam1 commented on May 23, 2024

i fixed it using : https://gist.github.com/5a90b75874d1ddbf95f6.git
and in my controller :
$scope.details = function(details){
};

from ngautocomplete.

Aman-US-Punjabi avatar Aman-US-Punjabi commented on May 23, 2024

dam1 can you plz show the code the link you mentioned is not working. i am having two location input box , and i want to get latlng for both but only last one is coming, so help to find it for each one

from ngautocomplete.

sheldonwjones avatar sheldonwjones commented on May 23, 2024

Aman-US-Punjabi just remove the .git from dam1's url.

https://gist.github.com/dam1/5a90b75874d1ddbf95f6

from ngautocomplete.

 avatar commented on May 23, 2024

dam1 I tried your edit and am getting error scope is not a function. Any ideas?

from ngautocomplete.

syalanuj avatar syalanuj commented on May 23, 2024

problem is with $scope.$apply() ? what if we need it as a property

from ngautocomplete.

ShawnSantiago avatar ShawnSantiago commented on May 23, 2024

Hey did anyone find a solution for this?

from ngautocomplete.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.