rxjs observable.create deprecated code example
Example: observable.create is deprecated
this.data$ = new Observable((observer: Observer) => {
observer.next();
observer.complete();
});
this.data$ = new Observable((observer: Observer) => {
observer.next();
observer.complete();
});