You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I've got a set of directives which deal with a tree structure. The tree structure is represented by an object with a property containing child objects with the same structure (that's fairly obvious).
So, this is great and all, but $watchCollection and $watch have a bit of a problem, because given that the model is nested, and each node deals with a particular (possibly) non-leaf branch of the tree, then for a tree with many levels, the $watching can become quite expensive.
I propose that the depth of checks be limit-able, so that non-leaf nodes don't end up checking a whole bunch of stuff in the model that they don't need to (since those checks will be performed elsewhere anyways).
I'm happy to put together a patch to do this, but I'm interested in hearing if it's a desirable feature or not.
The text was updated successfully, but these errors were encountered:
I've got a set of directives which deal with a tree structure. The tree structure is represented by an object with a property containing child objects with the same structure (that's fairly obvious).
So, this is great and all, but $watchCollection and $watch have a bit of a problem, because given that the model is nested, and each node deals with a particular (possibly) non-leaf branch of the tree, then for a tree with many levels, the $watching can become quite expensive.
I propose that the depth of checks be limit-able, so that non-leaf nodes don't end up checking a whole bunch of stuff in the model that they don't need to (since those checks will be performed elsewhere anyways).
I'm happy to put together a patch to do this, but I'm interested in hearing if it's a desirable feature or not.
The text was updated successfully, but these errors were encountered: