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:
- FF 40.0.3 says:
Error: too much recursion
- IE 11.0.9600.18015 says:
Error: Out of stack space
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