We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e0e844 commit 2e24939Copy full SHA for 2e24939
src/app/main.ts
@@ -1,7 +1,18 @@
1
import 'meteor-client';
2
3
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
4
-
+import { MeteorObservable } from 'meteor-rxjs';
5
+import { Meteor } from 'meteor/meteor';
6
import { AppModule } from './app.module';
7
-platformBrowserDynamic().bootstrapModule(AppModule);
8
+Meteor.startup(() => {
9
+ const subscription = MeteorObservable.autorun().subscribe(() => {
10
+
11
+ if (Meteor.loggingIn()) {
12
+ return;
13
+ }
14
15
+ setTimeout(() => subscription.unsubscribe());
16
+ platformBrowserDynamic().bootstrapModule(AppModule);
17
+ });
18
+});
0 commit comments