Permalink
Browse files

Step 22.2: Wrapped Angular 2 bootstrap with Meteor startup

  • Loading branch information...
1 parent 357e995 commit d48aeb80c7e115d72fa2d1cd2611ee8d0eff4e84 @dotansimha dotansimha committed with DAB0mB Sep 28, 2016
Showing with 4 additions and 2 deletions.
  1. +4 −2 client/main.ts
View
@@ -6,5 +6,7 @@ import { AppModule } from './imports/app/app.module';
import '../both/methods/parties.methods';
-const platform = platformBrowserDynamic();
-platform.bootstrapModule(AppModule);
+Meteor.startup(() => {
+ const platform = platformBrowserDynamic();
+ platform.bootstrapModule(AppModule);
+});

0 comments on commit d48aeb8

Please sign in to comment.