This is RxJS v 4. Find the latest version here
Creates an Observable sequence from changes to an object using Object.observe
.
array
(Array
): The object to observe changes usingObject.observe
(Observable
): An observable sequence containing changes to an object from Object.observe
.
var obj = {x: 1};
var source = Rx.Observable.ofObjectChanges(obj);
var subscription = source.subscribe(
function (x) {
console.log('Next: %s', x);
},
function (err) {
console.log('Error: %s', err);
},
function () {
console.log('Completed');
});
obj.x = 42;
// => Next: {type: "update", object: Object, name: "x", oldValue: 1}
File:
Dist:
Prerequisites:
- None
NPM Packages:
- None
NuGet Packages:
Unit Tests: