From a2377cfbb767b8233c857570a65c031b523032da Mon Sep 17 00:00:00 2001 From: Steven Pautz Date: Thu, 21 Aug 2014 14:05:11 -0400 Subject: [PATCH] Fix: Explicitly list dependency so that minification works. Fixes #2050 --- js/angular/service/templateCache.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(); +}]); })();