title: ng-model data bing not working properly
body: <p>I'm trying to update a field with a new geo code value, but even though the model is updated it is not binding with first call.  My controller code is as follows:</p>
  
  <pre><code>function TheReportCtrl($scope) {
      $scope.code = [];
      $scope.code.lat = "19.2555500";
      $scope.getCode = function () {
          var geocoder = new google.maps.Geocoder();
          var address = "12323 Barker Cypress Rd, Cypress, Texas"
          geocoder.geocode({
              'address': address
          }, function (results, status) {
              if (status === google.maps.GeocoderStatus.OK) {
                  $scope.code.lat = results[0].geometry.location.k;
              } else {
                  console.log("Geocoding failed: " + status);
              }
          });
      }
  } 
  </code></pre>
  
  <p>What is the missing part of my code?</p>
  
  <p><a href="http://fiddle.jshell.net/gayancc/7v2dfLsv/" rel="nofollow">Here is the JsFiddle Code Sample</a></p>