How to do things after an observable gets its data in Angular – Javascript
I am using an observable to retrieve data from an http like: handleError(error:any) { ... } getData() { return this._api_service.http.get<JSON>(this._url).pipe(retry(1), catchError(this.handleError)); } loadData() { this.getData().subscribe((data: {}) => { do_something_to_data(data); }); // here I want to do somethings after all the…