angular-docs-cn/tools/public_api_guard
Kara 26d4ce29e8 fix(forms): ensure observable validators are properly canceled (#15132)
Observable subscriptions from previous validation runs should be canceled
before a new subscription is created for the next validation run.
Currently the subscription that sets the errors is canceled properly,
but the source observable created by the validator is not. While this
does not affect validation status or error setting, the source
observables will incorrectly continue through the pipeline until they
complete. This change ensures that the whole stream is canceled.

AsyncValidatorFn previously had an "any" return type, but now it more
explicitly requires a Promise or Observable return type. We don't
anticipate this causing problems given that any other return type
would have caused a runtime error already.
2017-03-16 10:15:17 -07:00
..
animations/typings refactor(platform-browser): move platform-browser/animations to animations/browser (#15130) 2017-03-14 11:55:49 -07:00
common/typings feat(common): support `as` syntax in template/* bindings (#15025) 2017-03-14 20:46:29 -07:00
compiler/typings build: resolve review comments on flat modules PR and fix more bugs (#14660) 2017-02-23 16:39:44 -08:00
core/typings Revert "feat(upgrade): use `ComponentFactory.inputs/outputs/ngContentSelectors`" 2017-03-15 13:22:54 -07:00
forms/typings fix(forms): ensure observable validators are properly canceled (#15132) 2017-03-16 10:15:17 -07:00
http/typings fix(http): Make ResponseOptionsArgs an interface (#14607) (#14623) 2017-03-15 15:28:52 -07:00
platform-browser/typings refactor(platform-browser): move platform-browser/animations to animations/browser (#15130) 2017-03-14 11:55:49 -07:00
platform-browser-dynamic/typings build: resolve review comments on flat modules PR and fix more bugs (#14660) 2017-02-23 16:39:44 -08:00
platform-server/typings build: resolve review comments on flat modules PR and fix more bugs (#14660) 2017-02-23 16:39:44 -08:00
platform-webworker/typings RendererV2 -> Renderer2 rename (#14998) 2017-03-07 16:36:12 -08:00
platform-webworker-dynamic/typings perf: distrubute smaller bundled code and include es2015 bundle 2017-02-21 20:48:55 -08:00
router/typings fix: element injector vs module injector (#15044) 2017-03-14 16:26:17 -07:00
upgrade/typings Revert "feat(upgrade): use `ComponentFactory.inputs/outputs/ngContentSelectors`" 2017-03-15 13:22:54 -07:00