Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. fromEvent<MouseEvent>(document.body, 'click').subscribe(doSomethingWithEvent);
  2. fromEvent<KeyboardEvent>(document.body, 'keyup').subscribe(doSomethingWithEvent);
  3. fromEvent<FocusEvent>(document.body, 'focus').subscribe(doSomethingWithEvent);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement