Code Monkey home page Code Monkey logo

Comments (3)

adamclark64 avatar adamclark64 commented on May 27, 2024

did you ever figure this out? I am currently in a similar situation trying to implement the simplest of trials

from ngautocomplete.

sternshachar avatar sternshachar commented on May 27, 2024

I did solve it.
my ng-autocomplete directive is used in this way:

input type="text" id="Autocomplete" class="form-control" ng-autocomplete options="options" ng-model="home.city" details="details" style="color: black;"

in my controller:
$scope.options = {types: '(cities)'};
$scope.details = "";

I don't remember exactly why. Tell me if it didn't work and i'll dive more deep into it.

from ngautocomplete.

adamclark64 avatar adamclark64 commented on May 27, 2024

I solved my problem as well.. I simply wanted the address given by google
to become a string value for location.
in my scope i just took the input for a new location and gave it a value
equal to the 'result1" from the simple demo, before I added the property
value.. I think just a JS hack but thanks for getting back. I do see it
getting quite tricky when grabbing all the values this directive gives.
And thanks for being more responsive than the guy who made this that has
apparently dropped off the face off the planet, in terms of providing
answers to issues

On Sat, May 30, 2015 at 3:18 PM, sternshachar [email protected]
wrote:

I did solve it.
my ng-autocomplete directive is used in this way:

input type="text" id="Autocomplete" class="form-control" ng-autocomplete
options="options" ng-model="home.city" details="details" style="color:
black;"

in my controller:
$scope.options = {types: '(cities)'};
$scope.details = "";

I don't remember exactly why. Tell me if it didn't work and i'll dive more
deep into it.


Reply to this email directly or view it on GitHub
#56 (comment)
.

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.