angular-cn/packages/core
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
..
src fix(core): call ngOnDestroy on all services that have it (#23755) 2018-05-08 13:55:29 -07:00
test fix(core): call ngOnDestroy on all services that have it (#23755) 2018-05-08 13:55:29 -07:00
testing docs: remove all deprecated `@stable` jsdoc tags (#23210) 2018-04-10 21:49:32 -07:00
BUILD.bazel release(bazel): change publish-next script to publish bazel artifacts (#23097) 2018-03-30 14:03:05 -07:00
index.ts
package.json build: update to rxjs@6.0.0 (#23679) 2018-05-03 10:53:39 -07:00
public_api.ts
rollup.config.js feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
tsconfig-build.json refactor(bazel): convert most ts_library to ng_module (#22176) 2018-02-15 14:08:53 -08:00