title: Angular google.maps.event.addListener('place_changed', function() {}); not working
body: <p>I am adding 'place_changed' listener it's not working first time when I search the address while it's working perfectly afterwards. Can anyone tell me what should be done. here is my code. Thanks in advance for your support  </p>
  
  <pre><code>var events = {
        places_changed: function (searchBox) {
          var gPlace = new google.maps.places.Autocomplete(document.getElementById('map-search-box'));
          google.maps.event.addListener(gPlace, 'place_changed', function() {
  
            var place = gPlace.getPlace();
  
            var a =place.geometry.location;
  
      $scope.myLocation = {
        lng : place.geometry.location.D,
        lat: place.geometry.location.k
      }
      abc = {
        coords: {
          latitude: place.geometry.location.k,
          longitude:place.geometry.location.D
        }
  
    }
       $scope.drawMap(abc); 
  }); 
  </code></pre>
  
  <p>}</p>
  
  <p>}</p>