<h1>Observables Example #1</h1>
<script src="https://unpkg.com/@reactivex/rxjs@5.0.3/dist/global/Rx.js"></script>
const source = Rx.Observable.fromEvent(document.body, 'mousemove');
source.subscribe(
value => console.log(`val => x: ${value.offsetX} & y: ${value.offsetY}`),
error => console.log(error),
() => console.log('completed')
);
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.