Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Commit cd6fe3f

Browse files
committed
Fix potential problems with minification.
Without stringifying the injected provider, we'd lose it in the minification process.
1 parent 276a0ba commit cd6fe3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

angular-css-injector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* https://github.com/Yappli/angular-css-injector/
88
*/
99
angular.module('angular.css.injector', [])
10-
.provider('cssInjector', function($interpolateProvider) {
10+
.provider('cssInjector', ['$interpolateProvider', function($interpolateProvider) {
1111
var singlePageMode = false;
1212

1313
function CssInjector($compile, $rootScope){
@@ -91,4 +91,4 @@ angular.module('angular.css.injector', [])
9191
singlePageMode = mode;
9292
return this;
9393
}
94-
});
94+
}]);

0 commit comments

Comments
 (0)