What is the Difference between new Observable and observable created from of or from?
of([1, 2, 3]).subscribe(x => console.log(x));
from([1, 2, 3]).subscribe(x => console.log(x));
vs new Observable()
What is the main difference between the above two way of creating observables?
I have read this, but it's not yet convincing! what is the difference between "new Observable()" and "of()" in RxJs
I'm not asking difference between of and from. I'm asking difference between either (of or from) from new Observable()
See Question&Answers more detail:os