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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -