title: how to pass the value from one page to another page in angular?
body: <p>I am starter of angular, when i am passing the value that i am entering into textbox i am able to see text="value" on header in <code>pageA[\adminlogin]</code> but when i am routing from one page to another page i am not able to see the same text on <code>pageB[\dashboard]</code> .In our application header is common for all pages.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>/*pageA*/   
   $rootScope.accNo = function() {
      return $scope.AccountNumber;
   }
  
  /*pageB*/   
    $scope.showAccNo = function() {
      return $scope.accno = $rootScope.accNo();
    }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!-- `pageA` --&gt;
   &lt;div class="col-md-12"&gt;
        &lt;input type="password" class="form-control" placeholder="#####"  ng-model="AccountNumber"/&gt;
   &lt;/div&gt;
  &lt;!-- `pageB` --&gt;
    &lt;p &gt;Administrator Portal for:&lt;strong&gt;{{showAccNo()}}&lt;/strong&gt;&lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>