gothinkster / angular-realworld-example-app

Exemplary real world application built with Angular

Home Page:https://angular.realworld.how/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue loading "my posts"

AlexJFishman opened this issue · comments

When loading "my posts" from a profile the Http params are empty,
which means it loads without a query ( full feed list ).

I fixed it by changing the "apiService" get method to :

get(path: string, data = {} ): Observable<any> { const params: HttpParams = new HttpParams(); return this._http.get(${environment.api_url}${path}, { params: data }) .pipe(catchError(this.formatErrors)); }

Yep I noticed that wrong behavior. Could you provide a PR which fixes it? :)