title: Changing Ionic 2 root programmatically
body: <p>I have a project on Android that I would like to change the root page dynamically determined if a user is logged in or not.</p>
  
  <p>In the app.component.ts. I am checking the local storage for a flag that determines if the user is logged in. If they are, it takes them to the 2nd page and doesn't show a login page. If they aren't, it shows them a login page.</p>
  
  <p>My problem is that the local storage GET is a Promise and it finishes up the constructor of app.component.ts before it has an opportunity (it goes to the login screen and shows it) then when the Promise is finished it switches to the 2nd screen. I don't want to show the login screen at all if they are already logged in.</p>
  
  <p>I've tried everything and can't seem to figure this out. How can I change the root page that loads based on the status of a value in the local storage?</p>