forked from Urigo/angular-meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathurigo:angular.js
More file actions
26 lines (25 loc) · 838 Bytes
/
urigo:angular.js
File metadata and controls
26 lines (25 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Define angular-meteor and its dependencies
var angularMeteor = angular.module('angular-meteor', [
'angular-meteor.subscribe',
'angular-meteor.collections',
'angular-meteor.meteor-collection',
'angular-meteor.object',
'angular-meteor.template',
'angular-meteor.user',
'angular-meteor.methods',
'angular-meteor.session',
'angular-meteor.reactive-scope',
'angular-meteor.utils',
'hashKeyCopier'
]);
angularMeteor.run(['$compile', '$document', '$rootScope', function ($compile, $document, $rootScope) {
// Recompile after iron:router builds page
if(typeof Router != 'undefined') {
Router.onAfterAction(function(req, res, next) {
Tracker.afterFlush(function() {
$compile($document)($rootScope);
if (!$rootScope.$$phase) $rootScope.$apply();
});
});
}
}]);