loading...
markdown guide
 

?? please, show me your code. You can have multiple subscriptions to one observable.

import { from } from 'rxjs';


const example$ = from([1,2,3]);


const subscribe1 = example$.subscribe(val => console.log('First Subscriber:', val));
const subscribe2 = example$.subscribe(val => console.log('Second Subscriber:', val));

/*
Result:
First Subscriber: 1
First Subscriber:2
First Subscriber:3
Second Subscriber:1
Second Subscriber:2
Second Subscriber:3
*/
Classic DEV Post from Jun 1 '19

What the heck is a Developer Advocate?

AbdulHadiBhagat profile image

dev.to now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️