angular-cn/packages/forms/src/directives
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
..
reactive_directives refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
abstract_control_directive.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
abstract_form_group_directive.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
checkbox_value_accessor.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
control_container.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
control_value_accessor.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
default_value_accessor.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
error_examples.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
form_interface.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
ng_control.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
ng_control_status.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
ng_form.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
ng_model.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
ng_model_group.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
ng_no_validate_directive.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
normalize_validator.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
number_value_accessor.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
radio_control_value_accessor.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
range_value_accessor.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
reactive_errors.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
select_control_value_accessor.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
select_multiple_control_value_accessor.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
shared.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
template_driven_errors.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
validators.ts fix(forms): ensure observable validators are properly canceled (#15132) 2017-03-16 10:15:17 -07:00