fc034270ce
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 |
||
---|---|---|
.. | ||
anchor_spec.ts | ||
component_view_spec.ts | ||
element_spec.ts | ||
embedded_view_spec.ts | ||
helper.ts | ||
ng_content_spec.ts | ||
ng_module_spec.ts | ||
provider_spec.ts | ||
pure_expression_spec.ts | ||
query_spec.ts | ||
services_spec.ts | ||
text_spec.ts | ||
view_def_spec.ts |