angular - Multiple request in Angular2 RC1 -
i have used async pipe in angular 2 rc1, lead multiple request server. in angular2 beta 16 have used share method solve this.
import {http, headers, requestoptions, urlsearchparams} '@angular/http';
in constructor requesting this._http.get(path, options)
in beta version using this._http.get(path, options).share()
import 'rxjs/add/operator/share';
Comments
Post a Comment