Skip to content

digest recursion problem #64

@tysenmoore-xse

Description

@tysenmoore-xse

I have hit a digest recursion problem when opening an object that has more than 10 levels deep. For example,

testObj = { lvl0: { lvl1: { lvl2: { lvl3: { lvl4: { lvl5: { lvl6: { lvl7: { lvl8: { lvl9: { lvl10: { lvl11: { lvl12: { end:true } } } } } } } } } } } } } };

Then I attempt to open using:

<json-formatter json="testObj" open="14"></json-formatter>

Error:

Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
    Watchers fired in the last 5 iterations:...

I have tried various workarounds but cannot seem to get it right. Do you have suggestions or possibly a solution to the problem :-) ? I would like to avoid changing the digestTtl. Any suggestions welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions