fix(forms): fully support rebinding form group directive (#11051)

This commit is contained in:
Kara
2016-08-25 14:37:57 -07:00
committed by Victor Berchet
parent d7c82f5c0f
commit 515ff61fcb
4 changed files with 194 additions and 10 deletions

View File

@ -519,6 +519,14 @@ export class FormControl extends AbstractControl {
*/
registerOnChange(fn: Function): void { this._onChange.push(fn); }
/**
* @internal
*/
_clearChangeFns(): void {
this._onChange = [];
this._onDisabledChange = null;
}
/**
* Register a listener for disabled events.
*/