- I am trying to learn rx js
- I have a fiddle with rxjs where they use api and display the values.
- same way I am trying to load the values in my grid.
- but I am not able to load the values.
- is it possible to get in angular2 and will we be able to delete api values
- can you tell me how to achieve it
working fiddle
http://jsfiddle.net/8jFJH/2534/
not working fiddle
var refreshClickStream = Rx.Observable.fromEvent(refreshButton, 'click');
var requestStream = refreshClickStream.startWith('startup click')
.map(function() {
var randomOffset = Math.floor(Math.random()*500);
return 'https://api.github.com/users?since=' + randomOffset;
});
console.log("requestStream-------->" + JSON.stringify(requestStream));