Fires when a field value is updated through the set method.

The change event is raised after the field value is updated. Calling the get method from the event handler will return the new value.

Event Data

e.field String

The name of the field which changed.

Example - subscribe to the change event

var observable = new{ name: "John Doe" });
observable.bind("change", function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(e.field); // will output the field name when the event is raised
observable.set("name", "Jane Doe"); // raises the "change" event and the handler outputs "name"
In this article