Feature: Maximum depth to $watch / $watchCollection #4591
Description
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.