diff --git a/js/angular/service/templateCache.js b/js/angular/service/templateCache.js index cdc50634e8..28687b2f13 100644 --- a/js/angular/service/templateCache.js +++ b/js/angular/service/templateCache.js @@ -116,8 +116,10 @@ function($stateProvider, $ionicConfigProvider) { }]) // process the templateUrls collected by the $stateProvider, adding them to the cache -.run(function($ionicTemplateCache) { - $ionicTemplateCache(); -}); +.run([ +'$ionicTemplateCache', +function($ionicTemplateCache) { + $ionicTemplateCache(); +}]); })();