title: how to call remember me in ionic?
body: <p>Hi i am creating an app using ionic side-menu in that i need to remember the logged in user for that i am saving the username and password like this.</p>
  
  <pre><code>window.localStorage['rem'] = 'yes';
  window.localStorage['Username'] = $scope.loginData.username;
  window.localStorage['password'] =$scope.loginData.password;
  </code></pre>
  
  <p>The saving function is working fine, problem is i tried to read the saved data while starting the app controller is not calling.How can i call the controller while loading the login page in ionic side menu app? </p>
  
  <p>Thanks in advance</p>