Version: datastore-0.5.0
Subscribing to Changes
#
Change EventsYou can listen for change events on your local store. Each event carries a type and data changed by the event.
The change events that can occur are;
ADD
data is added to the Store. The event payload is the saved dataUPDATE
data is updated in the Store. The event payload is the updated dataDELETE
data is removed from the Store. The event payload is the removed data
You can subscribe to all change events on a Model.
You can also subscribe to specific events