-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Description
I'm trying to subscribe to any data changes made against any property on the vm, not just pre-defined property names. I couldn't find any way to do it, so here's my proposal.
I made an example here: http://jsfiddle.net/BBk3j/. In the first $watch
, I subscribe to changes on the foo
property. The next two $watch
statements would be my proposal to allow any watching for updates on any property. Either support a wildcard syntax (which I don't think is a great idea, because *
is a valid property name in JS), or a better syntax that makes the string property name optional.
Metadata
Metadata
Assignees
Labels
No labels