angular-cn/packages/platform-browser
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 build: update some ts_library rules to ng_module (#22005) 2018-02-12 14:34:59 -08:00
src feat: allow direct scoping of @Injectables to the root injector (#22185) 2018-02-15 14:20:27 -08:00
test fix(platform-browser): support 0/false/null values in transfer_state (#22179) 2018-02-13 11:28:22 -08:00
testing refactor(bazel): convert most ts_library to ng_module (#22176) 2018-02-15 14:08:53 -08:00
BUILD.bazel build: update some ts_library rules to ng_module (#22005) 2018-02-12 14:34:59 -08:00
index.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
package.json build: roll up to named .js files rather than 'index.js' (#19190) 2017-09-19 16:59:18 -07:00
public_api.ts build: publish tree of files rather than FESMs (#18541) 2017-08-31 15:34:50 -07:00
rollup.config.js refactor: make all rollup config ES5 compatible (#20028) 2017-10-30 23:09:17 -04:00
tsconfig-build.json fix: don’t use the global `ng` at all with closure enhanced optimizations 2017-09-27 10:09:56 -07:00