(angularjs-google-maps) ng-click inside marker
问题 This question is about angularjs-google-maps , https://github.com/allenhwkim/angularjs-google-maps Is there a way to use ng-click on a marker to set a variable like this? (the value of 1 is hard-coded for testing purposes). Clicking the marker currently does not seem to trigger the ng-click. <marker ng-repeat="instance in common.instances" position="[{{instance.lat}},{{instance.lng}}]" ng-click="common.selectedinstance = 1"> </marker> 回答1: From their document, https://developers.google.com