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) {
    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
Not finding the help you need? Improve this article