Answers for "understanding Observable.create("

0

understanding Observable.create(

import { Observable } from "rxjs/Observable";

var observable = Observable.create(function subscribe(observer) {
    observer.next('Hey guys!')
})

// OR 

var observable = Observable.create((observer:any) => {
    observer.next('Hey guys!')
})
Posted by: Guest on December-30-2020

Browse Popular Code Answers by Language