@ -2,6 +2,7 @@ import {CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||
import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
import {StringMap} from 'angular2/src/core/facade/collection';
|
||||
import {OnChanges, OnDestroy} from 'angular2/lifecycle_hooks';
|
||||
import {SimpleChange} from 'angular2/src/core/change_detection';
|
||||
import {Query, Directive} from 'angular2/src/core/metadata';
|
||||
import {forwardRef, Host, SkipSelf, Binding, Inject, Optional} from 'angular2/src/core/di';
|
||||
|
||||
@ -93,7 +94,7 @@ export class NgControlName extends NgControl implements OnChanges,
|
||||
this.validators = validators;
|
||||
}
|
||||
|
||||
onChanges(changes: StringMap<string, any>) {
|
||||
onChanges(changes: StringMap<string, SimpleChange>) {
|
||||
if (!this._added) {
|
||||
this.formDirective.addControl(this);
|
||||
this._added = true;
|
||||
|
@ -1,6 +1,7 @@
|
||||
import {CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||
import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
import {OnChanges} from 'angular2/lifecycle_hooks';
|
||||
import {SimpleChange} from 'angular2/src/core/change_detection';
|
||||
import {Query, Directive} from 'angular2/src/core/metadata';
|
||||
import {forwardRef, Binding, Inject, Optional} from 'angular2/src/core/di';
|
||||
import {NgControl} from './ng_control';
|
||||
@ -80,7 +81,7 @@ export class NgFormControl extends NgControl implements OnChanges {
|
||||
this.validators = validators;
|
||||
}
|
||||
|
||||
onChanges(changes: StringMap<string, any>): void {
|
||||
onChanges(changes: StringMap<string, SimpleChange>): void {
|
||||
if (!this._added) {
|
||||
setUpControl(this.form, this);
|
||||
this.form.updateValidity();
|
||||
|
@ -1,8 +1,7 @@
|
||||
import {CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||
import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
|
||||
import {OnChanges} from 'angular2/lifecycle_hooks';
|
||||
|
||||
import {SimpleChange} from 'angular2/src/core/change_detection';
|
||||
import {Query, Directive} from 'angular2/src/core/metadata';
|
||||
import {forwardRef, Binding, Inject, Optional} from 'angular2/src/core/di';
|
||||
import {NgControl} from './ng_control';
|
||||
@ -53,7 +52,7 @@ export class NgModel extends NgControl implements OnChanges {
|
||||
this.validators = validators;
|
||||
}
|
||||
|
||||
onChanges(changes: StringMap<string, any>) {
|
||||
onChanges(changes: StringMap<string, SimpleChange>) {
|
||||
if (!this._added) {
|
||||
setUpControl(this._control, this);
|
||||
this._control.updateValidity();
|
||||
|
Reference in New Issue
Block a user