angular-cn/packages/core/test/view
Alex Rickabaugh fab6b39c3d fix(core): inject() should always work in an NgModule injection scope (#23148)
Currently the context for inject() is only set when the token is seen
for the first time. This has two issues:

* It should always be set when injecting from that injector, because
  a constructor may wish to call inject() directly.
* If an NgModuleFactory is .create()'d twice, and an ngInjectableDef
  token is requested from each of them, the second time will fail.
  This is because the first injection adds the provider definition
  and calls the factory, and the provider definitions are shared.
  The second injector will see the provider definition and call the
  factory to create an instance, but without setting the correct
  context for inject().

Fixes angular/material2#10586.

PR Close #23148
2018-04-03 10:59:36 -07:00
..
anchor_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
component_view_spec.ts fix(core): fix retrieving the binding name when an expression changes (#21814) 2018-01-26 15:34:47 -08:00
element_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
embedded_view_spec.ts feat(core): add binding name to content changed error (#20352) 2018-01-17 07:16:40 -08:00
helper.ts refactor(core): add a checkIndex to the compiler view nodes 2017-10-04 14:55:54 -07:00
ng_content_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
ng_module_spec.ts fix(core): inject() should always work in an NgModule injection scope (#23148) 2018-04-03 10:59:36 -07:00
provider_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
pure_expression_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
query_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
services_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
text_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
view_def_spec.ts build(core): remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00