castillo-io / angular-css

CSS on-demand for AngularJS [Looking for New Maintainers]
http://castillo-io.github.io/angular-css/#/
MIT License
470 stars 86 forks source link

$http.get(...).error #81

Open amirping opened 7 years ago

amirping commented 7 years ago

i got this error from the angular-css.js the style is correctly loaded image

and i corrected by changing the line 447 from

$http.get(stylesheet.href).error(function (response) {
                if(DEBUG) $log.error('AngularCSS: Incorrect path for ' + stylesheet.href);
            })

to

$http.get(stylesheet.href).then(function (response) {
                if(DEBUG) $log.error('AngularCSS: Incorrect path for ' + stylesheet.href);
            })
ProductOfAmerica commented 7 years ago

Even after making your change, the style sheet is still not loaded properly. I think it has to do with preloading the css not working correctly

danmitchell-nureva commented 7 years ago

Does https://github.com/castillo-io/angular-css/commit/ac5bae8e8ee1c56c58a770af8486afb99f2180b3 fix this?

cool-Blue commented 7 years ago

ac5bae8 fixes it for me.

Is there any plan to publish?

ProductOfAmerica commented 7 years ago

Feel like this project is dead...