Skip to content

Commit

Permalink
Step 5.13: Add user identifiation in app's main component
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Dec 24, 2016
1 parent 3509f9a commit 1622c37
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/app.component.ts
@@ -1,17 +1,18 @@
import { Component } from '@angular/core';
import { Platform } from 'ionic-angular';
import { StatusBar, Splashscreen } from 'ionic-native';

import { TabsPage } from '../pages/tabs/tabs';

import { LoginComponent } from '../pages/auth/login';

@Component({
templateUrl: 'app.html'
})
export class MyApp {
rootPage = TabsPage;
rootPage: any;

constructor(platform: Platform) {
this.rootPage = Meteor.user() ? TabsPage : LoginComponent;

platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
Expand Down

0 comments on commit 1622c37

Please sign in to comment.