Conditional rootPage

Yes, this is what I wrote:

> let self = this;
>         auth.loadUserCredentials(function(){
>           if(auth.isAuthenticated){
>             self.isAuthenticated = auth.isAuthenticated;
>             self.userData = auth.userData;
>             self.rootPage = HomePage
>           }else{
>             self.isAuthenticated = auth.isAuthenticated;
>             self.rootPage = AuthorizationPage
>           }
>         })

and in app.html

<ion-nav id="nav" [root]="rootPage" #content swipe-back-enabled="false"></ion-nav>