title: $scope.ons.navigator.pushPage not work in init method
body: <p>I am following init function in app.js</p>
  
  <pre><code>$scope.init = function () 
          {
              if(localStorage.getItem("id")!=null &amp;&amp; localStorage.getItem("pass")!=null)
              {
                  alert(localStorage.getItem("id")+" "+localStorage.getItem("pass")); 
                  var id=localStorage.getItem("id");
                  var pass=localStorage.getItem("pass");              
                  $http({method: 'GET', url: site+'/login-web.php?txt_email='+id+'&amp;txt_password='+pass}).
                  success(function(data, status, headers, config) 
                  {
                      if(data=='error')
                          navigator.notification.alert("Wrong username or password.",null,"Attention.!","Try Again.!");
                      else
                      {
                          localStorage.setItem("id", id);
                          localStorage.setItem("pass", password);
                          alert("fire");
                          $scope.ons.navigator.pushPage('dashboard.html',{title : 'title'});
                      }
  
                  }).
                  error(function(data, status, headers, config) 
                  {
                      alert("Please check Mobile Data.");
                      // called asynchronously if an error occurs
                      // or server returns response with an error status.
                  });         
              }
          },
  </code></pre>
  
  <p>and i am fire init from </p>
  
  <pre><code>&lt;body ng-controller="AppController" ng-init="init()"&gt;
  </code></pre>
  
  <p>I want to like this if i am login first time then i need to login and i store id and pass in localstorage and every time when application is load and init method is fire and i check id and pass from localstorage and fire server method to check id and pass if its right login is done automatically.</p>
  
  <p>I am using phonegap + onsenui + angular js. </p>
  
  <p>Problem is from init method </p>
  
  <pre><code>$scope.ons.navigator.pushPage('dashboard.html',{title : 'title'});
  </code></pre>
  
  <p>is not redirect to dashborad.</p>