Skip to content

Instantly share code, notes, and snippets.

@Ibro
Created April 26, 2017 05:13
Show Gist options
  • Save Ibro/aa2430381c5d1ca99cb856c2abc94066 to your computer and use it in GitHub Desktop.
Save Ibro/aa2430381c5d1ca99cb856c2abc94066 to your computer and use it in GitHub Desktop.
RxJS fromEvent - Subscribing to mouse events - Coding Blast - www.codingblast.com
import {Observable} from 'rxjs';
Observable
.fromEvent(document, 'mousemove')
.forEach(function next(value) {
console.log('next: ', value);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment