[master][develop] ng-click on a window
Hi,
I'm trying to use ng-click on a window but doesn't work. I think it's because the content of the window is a copy of the HTML of the element.
I created a plunker for this. Clicking on the marker it opens a window with a click. The link on the window should move the marker. http://plnkr.co/edit/hS13E8ydDpnBFGPIAuSo
Thanks
confirmed @nlaplante how should we handle this?
I only ask because should we even bother handling ng-click directive when we are using a custom directive?
I think the HTML within the window should behave as any other html in Angular, just for consistency. Actually I was quite surprised it didn't work.
Albert Callarisa Roca
On Saturday, 7 December, 2013 at 10:20 am, nmccready wrote:
I only ask because should we even bother handling ng-click directive when we are using a custom directive?
— Reply to this email directly or view it on GitHub (https://github.com/nlaplante/angular-google-maps/issues/157#issuecomment-30045287).
I only ask because should we even bother handling ng-click directive when we are using a custom directive?
Actually I think ng-click should be the preferred way of handling this.
Fine w me
I got ng-click to work inside a
Does it work in markers too?
Well it's not ready yet! hehe :)
TypeError: Object #
Changed:
element.html()
to
element.get(0)
and I got the above error in specs.
k whats the branch name?
It's not on a specific branch yet. Not committed. I'll create a feature branch for this and let you know.
any progress on this?
Also am interested in this. Thanks!
found this gem http://stackoverflow.com/questions/15613992/ng-click-attribute-on-angularjs-directive
trying to work it in
Please check if develop has solved your issue. If your looking for ng-click to replace click it has not. However the content compiled inside of a window is now clickable if it is bound to a controller in the window scope. See the examples.
Has this issue been resolved, and is the fix present in the current master?
To click stuff in a window yes. To replace click to open a window , no. On
thank you for the quick response!
Its in the example, look for infowindow controller.
This issue is resolved however I am committing another example to develop.