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

v1.0.8 bind css to directive on angular 1.6.5 not working??? #85

Open soonwait opened 7 years ago

soonwait commented 7 years ago

I found this then i had debug(trace) line by line, finally, i find out the reason in

/**
   * AngularJS hack - This way we can get and decorate all custom directives
   * in order to broadcast a custom $directiveAdd event
   **/

because the statement $directives.push({ ddo: directive, handled: false }); in module.directive and module.component occur after angular.forEach($directives, function ($dir) { which in module.config(['$provide','$injector'

MAY BE the truly reason is: angular-async-loader and angular-css is conflict ???

By the way, in this porject we using RequireJS and AngularJS together, by angular-async-loader...