Answers for "rxjs fromevent mouseover"

0

rxjs fromevent mouseover

import { fromEvent } from 'rxjs';

var result = document.getElementById('result');
var source = fromEvent(result, 'mouseover');

var subscription = source.subscribe(
   function (x) {
    console.log('Hovered!');
   }
);
Posted by: Guest on October-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language