title: How to pass only the value of controller variable as argument in Ionic
body: <p>I am trying to pass the extracted latitude and longitude from the google maps autocomplete API to a function that updates the map based on those coordinates. </p>
  
  <p>How do i pass the value of the variables {{details1.geometry.location.lat()}} and {{details1.geometry.location.lng()}} as arguments for the updateMap() function in ng-blur="updateMap()"     </p>
  
  <pre><code>&lt;ion-content padding="true" class="has-header" ng-controller = "pollutionMapCtrl"&gt;
  
              &lt;label class="item item-input" id="address-input" name="address"&gt;
                      &lt;i class="icon ion-search placeholder-icon"&gt;&lt;/i&gt;
                       &lt;input id = "Autocomplete" type="text" ng-autocomplete ng-model = "result1" details = "details1" options = "options1" ng-blur="updateMap()"&gt;
              &lt;/label&gt;
  
              &lt;div&gt;result: {{result1}}&lt;/div&gt;
              &lt;div&gt;lat: {{details1.geometry.location.lat()}}&lt;/div&gt;
              &lt;div&gt;long: {{details1.geometry.location.lng()}}&lt;/div&gt;
  </code></pre>
  
  <p>controller file</p>
  
  <pre><code>.controller('pollutionMapCtrl', function($scope) {
   $scope.updateMap = function (lat,lng) {
      $scope.map = { center: { latitude: lat, longitude: lng }, zoom: 8 };
  }
  </code></pre>