Posted On: Mar 13, 2020
Multiple HTTP calls in the Angular 2 can be chained using the mergeMap operator.
//example import { mergeMap } from 'rxjs/operators'; this.http.get('./customer.json').pipe( mergeMap(customer => this.http.get(customer.contractUrl)) ).subscribe(res => this.contract = res);
This merge operator is used by the Angular version above 4.3.
Never Miss an Articles from us.
Angular 2 is a completely revived component-based framework in which an application is a tree of loosely coupled compon..
Angular 2 is a re-written version of Angular1 and not an update. The best way to compare Angular 2 and Angular 1 is by f..
Angular 2 is a platform that encompasses a wide range of capabilities. Some new features were added in Angular 2 which i..