title: Ionic Angular js hidden input value not displaying in another page
body: <p>I want to set hidden input value on login user then i want to get hidden input value in another page.</p>
  
  <p><strong>index.html (This page has hidden input )</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"&gt;
      &lt;title&gt;&lt;/title&gt;
  
      &lt;link href="lib/ionic/css/ionic.css" rel="stylesheet"&gt;
      &lt;link href="css/style.css" rel="stylesheet"&gt;
  
      &lt;script src="lib/ionic/js/ionic.bundle.js"&gt;&lt;/script&gt;
      &lt;script src="lib/ionic/ng-cordova-master/demo/www/lib/ngCordova/dist/ng-cordova.js"&gt;&lt;/script&gt;
      &lt;script src="cordova.js"&gt;&lt;/script&gt;
      &lt;script src="js/app.js"&gt;&lt;/script&gt;
      &lt;script src="js/controllers.js"&gt;&lt;/script&gt;
      &lt;script src="js/services.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body ng-app="starter"&gt;
  
      &lt;input type="hidden" id="hiddenValue" ng-value="hiddenValue" /&gt;
  
      &lt;ion-nav-view&gt;&lt;/ion-nav-view&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I set hidden input value then i use  <strong>$location.path('/HomePage');</strong>  in order to redirect as below</p>
  
  <p><strong>Login.html's controller as below</strong></p>
  
  <pre><code>.controller('LoginCtrl', function ($scope, LoginService, $ionicPopup, $state, $location) {
      $scope.data = {};
  
      $scope.login = function () {
          LoginService.loginUser($scope.data.username, $scope.data.password).success(function (data) {
  
              $scope.hiddenValue = "TestValue";  // I set value here           
  
              $location.path('/Menu');
  
          }).error(function (data) {
              var alertPopup = $ionicPopup.alert({
                  title: 'Login failed!',
                  template: 'Please check your credentials!'
              });
          });
      }
  })
  </code></pre>
  
  <p>I can not display <strong>$scope.hiddenValue</strong> in <strong>Menu.html</strong> in below side.</p>
  
  <pre><code>.controller('MenuCtrl', function ($scope, LoginService, $ionicPopup, $state, $location) {
  
      alert($scope.hiddenValue);
  
  })
  </code></pre>
  
  <p>when i try to use <strong>alert($scope.hiddenValue);</strong> in order to display value from hidden input , i get <strong>undefined error</strong></p>
  
  <p>Where i miss why i can not display value in another page ?</p>