const subscription = MeteorObservable.autorun().subscribe(() => { if (Meteor.loggingIn()) { return; } setTimeout(() => subscription.unsubscribe()); platformBrowserDynamic().bootstrapModule(AppModule); });
this.zone.run(() => { this.currentUser = Meteor.user(); this.currentUserId = Meteor.userId(); this.isLoggingIn = Meteor.loggingIn(); this.isLoggedIn = !!Meteor.user(); })