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

Popular posts from this blog

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -