File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,18 @@ import { Platform } from 'ionic-angular';
33import { StatusBar } from '@ionic-native/status-bar' ;
44import { SplashScreen } from '@ionic-native/splash-screen' ;
55import { ChatsPage } from '../pages/chats/chats' ;
6+ import { Meteor } from 'meteor/meteor' ;
7+ import { LoginPage } from '../pages/login/login' ;
68
79@Component ( {
810 templateUrl : 'app.html'
911} )
1012export class MyApp {
11- rootPage :any = ChatsPage ;
13+ rootPage : any ;
1214
1315 constructor ( platform : Platform , statusBar : StatusBar , splashScreen : SplashScreen ) {
16+ this . rootPage = Meteor . user ( ) ? ChatsPage : LoginPage ;
17+
1418 platform . ready ( ) . then ( ( ) => {
1519 // Okay, so the platform is ready and our plugins are available.
1620 // Here you can do any higher level native things you might need.
You can’t perform that action at this time.
0 commit comments