Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng-click in an info window not firing #44

Open
gmuirhead opened this issue Jan 9, 2014 · 2 comments
Open

ng-click in an info window not firing #44

gmuirhead opened this issue Jan 9, 2014 · 2 comments

Comments

@gmuirhead
Copy link

After updating to the latest build (1.0) I have noticed that ng-clicks on the info window have stopped working.

I have modified the info window example fiddler to include an ng-click as follows:

{{selectedVolcano.name}}

{{selectedVolcano.elevationMeters}}m

Any ideas or thoughts would be helpful.

Thanks,
Gregory

@gmuirhead
Copy link
Author

I have found the cause, due to teh DOM objects getting removed and replaced with the empty DIV, the note regarding compilation is helpful but it would have been helpful further for the directive to offer that as an optional parameter for folks.

@thmelo
Copy link

thmelo commented Apr 19, 2014

A workaround that I found. It access the $scope from outside.

$(document).on('click','.report', function(e){
e.preventDefault();
var scope = angular.element($(".content")).scope();
scope.$apply(function(){
scope.reportSpot();
})
});

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

No branches or pull requests

2 participants