angular-cn/packages/core/test/view
Alex Rickabaugh fc034270ce fix(core): call ngOnDestroy on all services that have it (#23755)
Previously, ngOnDestroy was only called on services which were statically
determined to have ngOnDestroy methods. In some cases, such as with services
instantiated via factory functions, it's not statically known that the service
has an ngOnDestroy method.

This commit changes the runtime to look for ngOnDestroy when instantiating
all DI tokens, and to call the method if it's present.

Fixes #22466
Fixes #22240
Fixes #14818

PR Close #23755
2018-05-08 13:55:29 -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): call ngOnDestroy on all services that have it (#23755) 2018-05-08 13:55:29 -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