angular-cn/tools/public_api_guard
Alex Rickabaugh 7ac34e42a0 feat: allow direct scoping of @Injectables to the root injector (#22185)
@Injectable() supports a scope parameter which specifies the target module.
However, it's still difficult to specify that a particular service belongs
in the root injector. A developer attempting to ensure that must either
also provide a module intended for placement in the root injector or target
a module known to already be in the root injector (e.g. BrowserModule).
Both of these strategies are cumbersome and brittle.

Instead, this commit adds a token APP_ROOT_SCOPE which provides a
straightforward way of targeting the root injector directly, without
requiring special knowledge of modules within it.

PR Close #22185
2018-02-15 14:20:27 -08:00
..
animations feat(animations): re-introduce support for transition matching functions (#20723) 2017-12-07 17:16:09 -08:00
common fix(common): weaken AsyncPipe transform signature (#22169) 2018-02-12 15:57:29 -08:00
compiler build: update public api file names (#19190) 2017-09-19 16:59:18 -07:00
core feat: allow direct scoping of @Injectables to the root injector (#22185) 2018-02-15 14:20:27 -08:00
forms feat(forms): multiple validators for array method (#20766) 2018-02-07 12:04:48 -08:00
http build: update public api file names (#19190) 2017-09-19 16:59:18 -07:00
platform-browser feat(platform-browser): fix #19604, can config hammerOptions (#21979) 2018-02-14 15:02:58 -05:00
platform-browser-dynamic feat(platform-browser-dynamic): export `JitCompilerFactory` (#20478) 2017-11-22 08:56:11 -06:00
platform-server feat(platform-server): add an API to transfer state from server (#19134) 2017-09-21 13:56:13 -07:00
platform-webworker fix: Update test code to type-check under TS 2.5 (#20175) 2017-11-15 18:12:16 -06:00
platform-webworker-dynamic build: update public api file names (#19190) 2017-09-19 16:59:18 -07:00
router feat(router): add navigationSource and restoredState to NavigationStart event (#21728) 2018-01-29 10:22:59 -08:00
service-worker fix(service-worker): don't crash if SW not supported 2017-12-01 14:18:16 -08:00
upgrade fix(upgrade): replaces get/setAngularLib with get/setAngularJSGlobal 2017-12-18 12:10:01 -08:00