Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created February 19, 2017 13:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save matthieu-D/8644af6a3412515baed0ad9da73c082f to your computer and use it in GitHub Desktop.
ngOnInit() {
this.subscription = Observable.fromEvent(document, 'mousemove')
.subscribe(this.handleData, this.handleError, this.handleComplete);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment