Q:

AngularJS ng-click inside of Google Maps InfoWindow

Following this issue:
AngularJS ng-include inside of Google Maps InfoWindow?
The solution provided working great, but I found one issue when adding ng-click into the template, it doesn't get evaluated.
<script type="text/ng-template" id="/test.html">  
   <h4>{{latLng[0]}},{{latLng[1]}}</h4>   
   <button ng-click="clickMe()"/>click</button>
 </script>

clickMe just test function inside controller, 
$scope.clickMe = function(){
  alert("clicked");
}

additional info:
ng-hide is evaluated just fine:
<script type="text/ng-template" id="/test.html">  
  <h4>{{latLng[0]}},{{latLng[1]}}</h4>   
  <button ng-hide="true" ng-click="clickMe()"/>click</button>
</script>

any help would be great, thanks heaps, been couple days scratching my head, with no result.
Regards
Jim

A:

The problem is, that you insert innerHTML not the compiled tag as content of the infoWindow. So your code is evaluated once and you pass only this compiled static content. Please try to use infoWindow.setContent(compiled[0]) instead of infoWindow.setContent(compiled[0].innerHTML)

