angular-cn/packages/examples/core/di/ts
Alex Rickabaugh f8749bfb70 fix(core): export inject() from @angular/core (#22389)
inject() supports the ngInjectableDef-based configuration of the injector
(otherwise known as tree-shakeable services). It was missing from the
exported API of @angular/core, this PR adds it.

The test added here is correct in theory, but may pass accidentally due
to the decorator side-effect replacing the inject() call at runtime. An
upcoming compiler PR will strip reified decorators from the output
entirely.

Fixes #22388

PR Close #22389
2018-02-28 10:44:37 -08:00
..
contentChild refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
contentChildren docs: clarify querying all descendants (#15400) 2017-03-24 14:36:55 -07:00
forward_ref build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
viewChild refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
viewChildren refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
injector_spec.ts fix(core): export inject() from @angular/core (#22389) 2018-02-28 10:44:37 -08:00
metadata_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
provider_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00