title: Using angular-google-maps can't bind click event to a markers for displaying single window
body: <p>I'm receiving a JSON object as Data source for my markers. After that I'm binding Click/Close functions for each marker</p>
  <p>Plunk: <a href="http://plnkr.co/edit/A9IbIFpj3d9tH6z9NYjf?p=preview" rel="nofollow noreferrer">http://plnkr.co/edit/A9IbIFpj3d9tH6z9NYjf?p=preview</a></p>
  <pre><code>    angular.forEach(tmp, function(value, key){
          
          value.onClick = function(){
              console.log(&quot;Clicked!&quot;);
              $scope.selected.show = false;
              $scope.selected = value;
              $scope.selected.show = !$scope.selected.show;
              $scope.$apply();
                              
          };
          value.CloseClick = function() {
              $scope.selected.show = false;
              console.log(&quot;CloseClicked&quot;);
              $scope.$apply();
          };
          this.push(value);
      }, $scope.markers);
  </code></pre>
  <p>and then drawing markers on a Google Map using <a href="https://angular-ui.github.io/angular-google-maps" rel="nofollow noreferrer">Angular Google Maps</a></p>
  <pre><code>            &lt;ui-gmap-google-map center='map.center' zoom='map.zoom'&gt;
                  &lt;ui-gmap-markers models=&quot;markers&quot; fit=&quot;true&quot; coords=&quot;'self'&quot; click=&quot;onClick&quot;&gt;
                  &lt;/ui-gmap-markers&gt;
                  &lt;ui-gmap-window coords=&quot;selected&quot; show=&quot;selected.show&quot; closeClick=&quot;closeClick&quot;&gt;&lt;div&gt;aga&lt;/div&gt;&lt;/ui-gmap-window&gt;                      
              &lt;/ui-gmap-google-map&gt; 
  </code></pre>
  <p>but when I click on a marker, the function onClick does not trigger. I'm new in Angular.js, but it seems I have an issue with it (or maybe worse for me - with JavaScript itself), not with Angular Google Maps, but I'm not sure. Thanks for any help.</p>
  <p><strong>[UPDATE]</strong> Problem solved by using <code>click=&quot;'onClick'&quot;</code> instead of <code>click=&quot;onClick&quot;</code></p>