Skip to content

Commit

Permalink
Step 11.1: Update the module initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela authored and DAB0mB committed Dec 14, 2016
1 parent eeef4fd commit 04d3e64
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions client/main.js
@@ -1,5 +1,19 @@
import angular from 'angular';
import angularMeteor from 'angular-meteor';
import { Parties } from '../collections/parties';

import { Meteor } from 'meteor/meteor';

import { name as Socially } from '../imports/ui/components/socially/socially';

function onReady() {
angular.bootstrap(document, [
Socially
], {
strictDi: true
});
}

if (Meteor.isCordova) {
angular.element(document).on('deviceready', onReady);
} else {
angular.element(document).ready(onReady);
}

0 comments on commit 04d3e64

Please sign in to comment.