subscribe is deprecated: Use an observer instead of a complete callback (deprecation) 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();
});