angular-cn/packages/common
Alex Rickabaugh 1b1d5f10a1 feat(common): accept object map for HttpClient headers & params (#18490)
Today, constructing a new GET request with headers looks like:

const headers = new HttpHeaders({
  'My-Header': 'header value',
});
http.get('/url', {headers}).subscribe(...);

This indirection is unnecessary. It'd be more ergonomic to write:

http.get('/url', {headers: {'My-Header': 'header value'}}).subscribe(...);

This commit allows that new syntax, both for HttpHeaders and HttpParams.
In the HttpParams case it also allows construction of HttpParams with a map.

PR Close #18490
2017-08-29 17:18:02 -07:00
..
http feat(common): accept object map for HttpClient headers & params (#18490) 2017-08-29 17:18:02 -07:00
locales fix(common): fix a duplicate case in the locale switch (#18941) 2017-08-29 17:02:20 -07:00
src fix(common): update closure-locale generation for tree shaking (#18938) 2017-08-29 15:29:21 -07:00
test refactor(common): move generated locale files (#18907) 2017-08-29 11:26:10 -05:00
testing build: import tslib rather than output TS helpers (#16901) 2017-05-23 14:01:39 -06:00
BUILD.bazel refactor(common): move generated locale files (#18907) 2017-08-29 11:26:10 -05:00
index.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
package.json build: import tslib rather than output TS helpers (#16901) 2017-05-23 14:01:39 -06:00
public_api.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
rollup.config.js build: import tslib rather than output TS helpers (#16901) 2017-05-23 14:01:39 -06:00
tsconfig-build.json build: Introduce Bazel build rules 2017-06-05 11:18:20 -07:00