I recently updated my version of angular using ng update
and when running ng lint
I am getting the error create is deprecated: use new Observable() instead
this.data$ = Observable.create(t => {
t.next(this.model);
t.complete();
});
What is the syntax for new observable?
Pretty simple
this.data$ = new Observable((observer: Observer) => {
observer.next();
observer.complete();
});