I use recursive templates to render a tree in angularJS, but when tree depth is above 10, AngularJS gives me an error on the console saying:
"Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Example in this plnkr.
If I understand correctly and try to put simple words on it (I know it's more complex):
item
(actually on item.ID
and item.children
--ttl
item
, and goes back to second stepThus after 10 iterations, the ttl will be 0, hence the error, though there is no actual error...
So, a few questions:
Thank you very much!
Edit:
This plnkr (which you need to see with firefox because of a raw.github) shows that bindonce is not a solution to this...
This is apparently a known issue of AngularJS, the only workarounds are not really satisfactory, See this issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With