Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Binding Model or Function to a Window Element in Maps? #421

Closed
pihish opened this issue May 15, 2014 · 3 comments
Closed

Binding Model or Function to a Window Element in Maps? #421

pihish opened this issue May 15, 2014 · 3 comments

Comments

@pihish
Copy link

pihish commented May 15, 2014

I would like to bind a $scope variable to an input I have on a element inside of my element and then use 'ng-click' to bind a function to a button inside of the same element. This doesn't seem to work. Is there something I am missing here?

@cthrax
Copy link
Contributor

cthrax commented May 15, 2014

A plnkr (http://plnkr.co) demonstrating what you're trying to do would enable answering this question with far less guessing.

@nmccready
Copy link
Contributor

@pihish look up issues with clicking a button inside a window. It is the same exact problem to solve. You will need another controller dedicated to bind to the window itself. See the examples in develop (maybe master) for infoWindowController or infoController.

@pihish
Copy link
Author

pihish commented May 16, 2014

@nmccready I got the initial binding to work following #382. But for some reason, if I bind an input to a model / variable in my controller and then enter new values into the input box, Angular doesn't recognize the value has been changed.

Why is the data binding only one-way and how do I set it to be two-way?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants