Creates an observable sequence from JSON from an Ajax request.
url
(String): A string of the URL to make the Ajax call.
(Observable): The observable sequence which contains the parsed JSON.
Rx.DOM.Request.get('/products')
.subscribe(
function (data) {
// Log data length
console.log(data.length);
},
function (err) {
// Log the error
}
);