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

Stack overflow in big application with many modules/directives #44

Closed Megadesty closed 8 years ago

Megadesty commented 9 years ago

We have a big AngularJS application and using angular-css extensively, since it gives a lot of freedom while designing directive templates.

When the application gets too big, FireFox and later also Internet Explorer begin to throw errors:

Chrome is still happy with the app, until it grows even larger.

It seems that the problem lies in the call of $provide.decorator(...) in the "AngularJS hack" (lines 567+).

Plunker of an abstracted structure of our app (which leads to the errors in FF and IE): http://plnkr.co/XGIJzZPcHhkXQ3HUoLgG