Skip to content

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

@Megadesty

Description

@Megadesty

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions