angular-docs-cn/packages/core/test
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
..
animation build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
bundling/hello_world test: Add bundle symbol extractor tool (#22002) 2018-02-13 11:28:54 -08:00
change_detection build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
debug build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
di build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
dom build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
linker fix(core): add stacktrace in log when error during cleanup component in TestBed (#22162) 2018-02-13 11:28:08 -08:00
metadata build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
reflection build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
render3 test(ivy): clean up canonical spec (#22188) 2018-02-13 13:04:43 -08:00
testability Revert "fix(core): fix chained http call (#20924)" 2018-01-17 15:28:21 -08:00
util build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
view feat: allow direct scoping of @Injectables to the root injector (#22185) 2018-02-15 14:20:27 -08:00
zone build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
BUILD.bazel build: Remove angular_src nested workspace (#21096) 2018-01-19 10:17:37 -08:00
application_init_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
application_module_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
application_ref_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
component_fixture_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
dev_mode_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
directive_lifecycle_integration_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
error_handler_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
event_emitter_spec.ts fix(core): fix proper propagation of subscriptions in EventEmitter (#22016) 2018-02-06 07:56:33 -08:00
fake_async_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
forward_ref_integration_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
spies.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
testing_internal_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
util_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00