angular-cn/tools/public_api_guard
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
..
animations feat(animations): report errors when invalid CSS properties are detected (#18718) 2017-08-21 20:38:22 -05:00
common feat(common): accept object map for HttpClient headers & params (#18490) 2017-08-29 17:18:02 -07:00
compiler build: fix paths to typings files so tsickle resolves imports correctly 2017-03-16 17:34:29 -07:00
core refactor(core): remove deprecated `Testability#findBindings` (#18782) 2017-08-18 17:13:16 -05:00
forms feat(forms): add updateOn and ngFormOptions to NgForm 2017-08-16 15:25:34 -07:00
http feat: deprecate @angular/http in favor of @angular/common/http (#18906) 2017-08-28 18:46:58 -05:00
platform-browser refactor(platform-browser): remove deprecated `NgProbeToken` (#18760) 2017-08-17 18:01:52 -05:00
platform-browser-dynamic perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
platform-server perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
platform-webworker refactor(platform-webworker): remove deprecated `PRIMITIVE` (#18761) 2017-08-17 18:02:00 -05:00
platform-webworker-dynamic perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
router Revert "refactor(router): remove deprecated `RouterOutlet` properties (#18781)" 2017-08-22 18:38:53 -05:00
upgrade perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00