GabrielDelepine / angular-css-injector

A angularJS service to load dynamically CSS files
MIT License
152 stars 90 forks source link

Scope retrieved from $rootElement instead of <head> #20

Closed lifter035 closed 9 years ago

lifter035 commented 9 years ago

Swapped retrieval of scope from head to $rootElement. It removes requirement of angular app being initalized on tag

GabrielDelepine commented 9 years ago

It breaks the compatibility with angularJS 1.0.x and 1.1.x but I think it's acceptable. Thanks for this PR.