Example #1
0
  const subscription = MeteorObservable.autorun().subscribe(() => {

    if (Meteor.loggingIn()) {
      return;
    }

    setTimeout(() => subscription.unsubscribe());
    platformBrowserDynamic().bootstrapModule(AppModule);
  });
Example #2
0
 this.zone.run(() => {
   this.currentUser = Meteor.user();
   this.currentUserId = Meteor.userId();
   this.isLoggingIn = Meteor.loggingIn();
   this.isLoggedIn = !!Meteor.user();
 })