diff --git a/angular-css-injector.js b/angular-css-injector.js
index dd50f16..b5e18d3 100644
--- a/angular-css-injector.js
+++ b/angular-css-injector.js
@@ -7,7 +7,7 @@
* https://github.com/Yappli/angular-css-injector/
*/
angular.module('angular.css.injector', [])
-.provider('cssInjector', function() {
+.provider('cssInjector', ['$interpolateProvider', function($interpolateProvider) {
var singlePageMode = false;
function CssInjector($compile, $rootScope){
@@ -40,7 +40,7 @@ angular.module('angular.css.injector', [])
if(scope.injectedStylesheets === undefined)
{
scope.injectedStylesheets = [];
- head.append($compile("")(scope)); // Found here : http://stackoverflow.com/a/11913182/1662766
+ head.append($compile("")(scope)); // Found here : http://stackoverflow.com/a/11913182/1662766
}
else
{
@@ -91,4 +91,4 @@ angular.module('angular.css.injector', [])
singlePageMode = mode;
return this;
}
-});
+}]);
diff --git a/angular-css-injector.min.js b/angular-css-injector.min.js
index 334a684..8c06286 100644
--- a/angular-css-injector.min.js
+++ b/angular-css-injector.min.js
@@ -1,2 +1,4 @@
/* https://github.com/Yappli/angular-css-injector v1.0.4 */
- -"use strict";angular.module("angular.css.injector",[]).provider("cssInjector",function(){function t(e,t){var n=false,r=angular.element(document.getElementsByTagName("head")[0]),i;t.$on("$locationChangeStart",function(){if(n===true)u()});var s=function(){if(i===undefined){if((i=r.scope())===undefined)throw"angular.css.injector error : Please initialize your app in the HTML tag and be sure your page has a HEAD tag."}};var o=function(t){s();if(i.injectedStylesheets===undefined){i.injectedStylesheets=[];r.append(e("")(i))}else{for(var n in i.injectedStylesheets){if(i.injectedStylesheets[n].href==t)return}}i.injectedStylesheets.push({href:t})};var u=function(){s();if(i.injectedStylesheets!==undefined)i.injectedStylesheets=[]};return{add:o,removeAll:u}}var e=false;this.$get=["$compile","$rootScope",function(e,n){return new t(e,n)}];this.setSinglePageMode=function(t){e=t;return this}})
+-"use strict";angular.module("angular.css.injector",[]).provider("cssInjector",["$interpolateProvider",function(f){function m(b,d){var g=angular.element(document.getElementsByTagName("head")[0]),a;d.$on("$locationChangeStart",function(){!0===h&&k()});var e=function(){if(void 0===a&&void 0===(a=g.scope()))throw"angular.css.injector error : Please initialize your app in the HTML tag and be sure your page has a HEAD tag.";},k=function(){e();void 0!==a.injectedStylesheets&&(a.injectedStylesheets=[])};return{add:function(l){e();
+if(void 0===a.injectedStylesheets)a.injectedStylesheets=[],g.append(b("")(a));else for(var c in a.injectedStylesheets)if(a.injectedStylesheets[c].href==l)return;a.injectedStylesheets.push({href:l})},remove:function(b){e();if(a.injectedStylesheets)for(var c=0;c