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 propose adding another syntax for
$watch
:which would mean the same thing as:
Currently, it's possible to do the same thing using
$watchCollection
, however:$watchCollection
supports arbitrary collections; multi-$watch
can be optimized better because it's always watching an array, whose size is fixed'[prop, foo.bar]'
) looks kludgyBut I think the reason for having multi-
$watch
is mainly semantics (i.e. better communication of intent):$watch(['a', 'b'], fn)
: fn depends on multiple things:a
andb
$watchCollection('collection', fn)
: fn depends on the contents of one thing:collection
The text was updated successfully, but these errors were encountered: