angular-cn/packages/core/test/linker
Tobias Bosch 2c5a671341 fix: don't instantiate providers with ngOnDestroy eagerly. (#15070)
BREAKING CHANGE:

Perviously, any provider that had an ngOnDestroy lifecycle hook would be created eagerly.

Now, only classes that are annotated with @Component, @Directive, @Pipe, @NgModule are eager. Providers only become eager if they are either directly or transitively injected into one of the above.

This also makes all `useValue` providers eager, which
should have no observable impact other than code size.

EXPECTED IMPACT:
Making providers eager was an incorrect behavior and never documented.
Also, providers that are used by a directive / pipe / ngModule stay eager.
So the impact should be rather small.

Fixes #14552
2017-03-14 14:32:26 -07:00
..
change_detection_integration_spec.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
entry_components_integration_spec.ts
integration_spec.ts feat: introduce source maps for templates (#15011) 2017-03-14 09:16:15 -07:00
ng_container_integration_spec.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
ng_module_integration_spec.ts fix: don't instantiate providers with ngOnDestroy eagerly. (#15070) 2017-03-14 14:32:26 -07:00
projection_integration_spec.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
query_integration_spec.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
query_list_spec.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
regression_integration_spec.ts fix(core): don’t recreate `TemplateRef` when used as a reference. (#15066) 2017-03-13 10:44:12 -07:00
security_integration_spec.ts
source_map_integration_node_only_spec.ts feat: introduce source maps for templates (#15011) 2017-03-14 09:16:15 -07:00
system_ng_module_factory_loader_spec.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
view_injector_integration_spec.ts fix: don't instantiate providers with ngOnDestroy eagerly. (#15070) 2017-03-14 14:32:26 -07:00