title: ng-click not working in google map angularjs?
body: <p>i have two stores in database and am trying to get stores in google map marker is pointing that two stores.i have ng-click in that info window to pass id here ng-click is not working is there any idea to pass id through ng-click
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>.controller('MapCtrl', [
      '$scope', '$http', '$location', '$window',
   
  function ($scope, $http, $location, $window) {
      $http.get('****').success(function (data, dealers, response) {
          function initialize() {
              var serverData = data;
              $scope.locations = [];
              for (var i = 0; i &lt; serverData.length; i++) {
                  var modal = [
                  data[i].Store_Name, data[i].S_Location.Latitude, data[i].S_Location.Longitude, i, 'images/arrow.svg', data[i].S_Address];
                  $scope.locations.push(modal); 
              }
              console.log($scope.locations);
              //---------------------------------------------------------
              //console i am getting like this
              var locations = [
                  ['nokia store', '12.971599', '77.594563', '1', 'images/arrow.svg.svg', '55a78953815356700bee698f'],
                  ['samsung store', '12.9065534', '77.5774802', '2', 'images/arrow.svg.svg', '55a786d1815356700bee6982'], ];
              //----------------------------------------------------------
              var map = new google.maps.Map(document.getElementById('map'), {
                  zoom: 13,
                  center: new google.maps.LatLng(12.9667, 77.5667),
                  mapTypeId: google.maps.MapTypeId.ROADMAP
              });
              var infowindow = new google.maps.InfoWindow();
              var marker, i;
              for (i = 0; i &lt; $scope.locations.length; i++) {
                  //console.log($scope.locations[i][1]);
                  marker = new google.maps.Marker({
                      position: new google.maps.LatLng($scope.locations[i][1], $scope.locations[i][2]),
                      map: map,
                      icon: $scope.locations[i][4],
                      animation: google.maps.Animation.DROP,
                  });
                  google.maps.event.addListener(marker, 'click', (function (marker, i) {
                      return function () {
                          infowindow.setContent('&lt;div class="marker-box"&gt;&lt;div class="marker-title"&gt;' + $scope.locations[i][0] + '&lt;/div&gt;&lt;input type="button" value="Book Now" name="Book Now" ng-click="getid(' + $scope.locations[i][5] + ') "/&gt;&lt;/div&gt;');
                          infowindow.open(map, marker);
                      }
                  })(marker, i));
              }
              $scope.map = map;
          }
          $scope.getid(id) {
              console.log(id);
          }
      });</code></pre>
  </div>
  </div>
  </p>