title: assign value to two variables in angular js
body: <p>If I have a method in my controller like:</p>
  
  <pre><code>var app = angular.module('App', []); 
  $scope.calcoloBudget = function(davendere, offerta, budg){
     davendere = parseInt(davendere);
     offerta = parseInt(offerta);
     return budg - (offerta - davendere);       
   };
  </code></pre>
  
  <p>Can I assign the result of this method at more than one variable in the view?
  like for example:</p>
  
  <pre><code>&lt;div ng-if="selectedItem3.costo &lt; off2"{{budget3=calcoloBudget(selectedItem3.costo, off2, budget2)}}&lt;/div&gt; 
  </code></pre>
  
  <p>and in another point of the view:</p>
  
  <pre><code>&lt;div ng-model="budget2" ng-if="selectedItem2.costo &lt; off1"&gt;Il tuo budget per questa busta dopo la seconda offerta è: &lt;b&gt;{{budget2=calcoloBudget(selectedItem2.costo, off1, budget1)}}&lt;/b&gt; fantamilioni.&lt;/div&gt;
  </code></pre>
  
  <p>and than can I than use this two variables? if yes which is the best way to do this?</p>