data icon indicating copy to clipboard operation
data copied to clipboard

Observing, pub/sub, or other events?

Open jeffwillden opened this issue 10 years ago • 1 comments

How do you observe model changes, so if the value of a property on a model changes, it triggers an event for (e.g.) DOM updates?

jeffwillden avatar Apr 05 '14 15:04 jeffwillden

You can listen to different events on the graph.. like when an operation has been applied.. or when a property has been updated.

See: https://github.com/substance/data/blob/master/tests/004-graph-events.js

michael avatar Apr 08 '14 12:04 michael