angular-realworld-example-app icon indicating copy to clipboard operation
angular-realworld-example-app copied to clipboard

Issue loading "my posts"

Open AlexJFishman opened this issue 6 years ago • 2 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)); }

AlexJFishman avatar Apr 10 '18 14:04 AlexJFishman

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

juristr avatar Apr 10 '18 18:04 juristr

@juristr done

dmytrohridin avatar May 18 '18 13:05 dmytrohridin