Skip to content

Commit

Permalink
Updated compatibility with Iron Router
Browse files Browse the repository at this point in the history
  • Loading branch information
loneleeandroo committed Mar 10, 2014
1 parent dabc719 commit f70bb36
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions ngMeteor.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,6 @@ ngMeteor.config(['$interpolateProvider',
}
]);

// Manual initilisation of ngMeteor
angular.element(document).ready(function() {
if(Template.__defaultLayout__){
// For compatability with iron-router
Template.__defaultLayout__.rendered = function(){
angular.bootstrap(document, ['ngMeteor']);
}
}else{
angular.bootstrap(document, ['ngMeteor']);
}
});


// Manual initilisation of ngMeteor
angular.element(document).ready(function() {
if (!angular.element(document).injector()){
Expand Down

0 comments on commit f70bb36

Please sign in to comment.