diff --git a/angular-css-injector.min.js b/angular-css-injector.min.js index 55c71d9..334a684 100644 --- a/angular-css-injector.min.js +++ b/angular-css-injector.min.js @@ -1,2 +1,2 @@ -/* https://github.com/Yappli/angular-css-injector v1.0.3.1 */ +/* 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}}) diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..9dd5333 --- /dev/null +++ b/bower.json @@ -0,0 +1,22 @@ +{ + "name": "angular-css-injector", + "main": "angular-css-injector.js", + "version": "1.0.4", + "homepage": "https://github.com/Yappli/angular-css-injector", + "authors": [ + "Gabriel Delépine " + ], + "description": "angularJS service to load dynamically CSS files", + "keywords": [ + "angularjs", + "css" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ] +}