-
Notifications
You must be signed in to change notification settings - Fork 182
Closed
Labels
Description
The current implementation of a get request is like that:
get(path: string): Observable<Response>The implementation of the @angular/http class is, that you can also pass parameters and things with the get request:
get(url: string, options?: RequestOptionsArgs): Observable<Response>;This could be used, if you want to add parameters as an object like this:
this.http.get('my/url/path', { search: params }I would suggest to extend the get request with an optional options-parameter, since this class could be a simple wrapper which just decorates the standard-requests with the headers.
maybe there is a reason why it is not done like that and before i start coding something i wanted to open the discussion. What do you think?