Code Monkey home page Code Monkey logo

Comments (8)

okonon avatar okonon commented on August 16, 2024

Did you include css to the head in index.html?

from ion-google-place.

kevbaker avatar kevbaker commented on August 16, 2024

Ok now I am getting the overlay which looks great, but I am unable to click on any of the items as I type. It is dynamically updating but not allowing me to tap on an item to close the modal.

from ion-google-place.

kevbaker avatar kevbaker commented on August 16, 2024

Digging into the ion-google-place code a bit more it seems like the selectLocation method on the popup scope is not being called.

I do have my tag in a modal. I'll see if that is somehow related... perhaps a z-index issue?

from ion-google-place.

kevbaker avatar kevbaker commented on August 16, 2024

Yes that seems to be the problem. When I launch the ion-google-place popup from a non-ion-modal window it works perfectly.

Any thoughts on how to address this?

from ion-google-place.

kevbaker avatar kevbaker commented on August 16, 2024

Ah found the fix in another issue thread #4
Is there a reason this fix, adding the modal class to the ion-google-place-container, hasn't been merged?

from ion-google-place.

kevbaker avatar kevbaker commented on August 16, 2024

Create a quick pull request for this if you'd like to merge it.

from ion-google-place.

exoer avatar exoer commented on August 16, 2024

I struggled with getting the data out from the directive in the controller. My solution was to use a object in the ng-model

 <ion-google-place placeholder="Search City, Country" ng-model="search_data.location" > </ion-google-place>

in the controller

$scope.search_data = {
      location: ''
    };

$scope.$watch('search_data.location', function(newVal, oldVal) {
        console.log('watch', newVal, oldVal)
        if (newVal.hasOwnProperty('formatted_address')) {
            $scope.search_city();
        }
    }); 

from ion-google-place.

seatechdev avatar seatechdev commented on August 16, 2024

this worked for me. I used $scope.apply to assign the output to a variable.

from ion-google-place.

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.