Answers for "rxjs que recibe como parametro un observable"

0

rxjs que recibe como parametro un observable

const $button = document.getElementById('main-button');const click$ = fromEvent($button, 'click');const subscription = click$.subscribe({  next: (e) => console.log('Event :', e)});// Luego de 5 segundos se cancela la suscripción a click$setTimeout(() => {  subscription.unsubscribe();}, 5000);
Posted by: Guest on December-30-2020

Code answers related to "rxjs que recibe como parametro un observable"

Code answers related to "Javascript"

Browse Popular Code Answers by Language