let fakeAsyncData$ = new Observable(observer => {
setTimeout(() => {
observer.next('New data is coming');
observer.complete();
}, 2000);
});
fakeAsyncData$.subscribe({
next(val) { console.log(val) } ,
error(e) { console.log(e) } ,
complete() { console.log('complete') }
});