Add the third and final dirty–checking mechanism to our implementation of Scope: shallow collection–watching.
The $watchCollection function is not simple, but that’s mostly because it provides an important, non-trivial facility: We can watch for changes in large arrays and objects much more efficiently than we could with just deep–watching.
Issue Checklist
[ ] How $watchCollection can be used with arrays, objects, and other values.
[ ] What $watchCollection does with arrays.
[ ] What $watchCollection does with objects.
[ ] Array–like objects and their role in $watchCollection.
Description
Add the third and final dirty–checking mechanism to our implementation of
Scope
: shallow collection–watching. The$watchCollection
function is not simple, but that’s mostly because it provides an important, non-trivial facility: We can watch for changes in large arrays and objects much more efficiently than we could with just deep–watching.Issue Checklist
$watchCollection
can be used with arrays, objects, and other values.$watchCollection
does with arrays.$watchCollection
does with objects.$watchCollection
.All issues in milestone: 0.2.0 milestone
Assignees