title: Passing the value with in the same controller in angularjs
body: <p>I have a account search modal dialog and i want to pass the value of the account to another view in the same controller.</p>
  
  <p>Once click on the 'search' button, it will go the transaction view, here i am setting the 'accountNumber'. But i am not able to accessing the value inside transaction view.</p>
  
  <pre><code>&lt;label class="item item-input"&gt;
     &lt;span class="input-label"&gt;Debit Account Number:&lt;/span&gt;
     &lt;input type="text" value="" ng-model="fundTransObj.debitAccId" readonly/&gt;
  &lt;/label&gt;
  </code></pre>
  
  <h2>controller</h2>
  
  <pre><code>$scope.fundTransObj = {      
    debitAccId:''      
  };
  $scope.transactionView = function(){    
      $scope.modal.hide();            
      $scope.fundTransObj = {
        debitAccId: $scope.accountNumber;
      }
      $state.go("Transactions");
    }
  </code></pre>