feat(forms): allow to compile forms in strictNullChecks mode (#14679)

Closes #14667

PR Close #14679
This commit is contained in:
Dzmitry Shylovich
2017-02-23 20:53:29 +03:00
committed by Miško Hevery
parent 2d78c8cc05
commit 5486e5417b
8 changed files with 81 additions and 113 deletions

View File

@ -8,6 +8,7 @@
import {Observable} from 'rxjs/Observable';
import {AbstractControl} from '../model';
import {ValidationErrors} from './validators';
/**
* Base class for control directives.
@ -27,7 +28,7 @@ export abstract class AbstractControlDirective {
get pending(): boolean { return this.control ? this.control.pending : null; }
get errors(): {[key: string]: any} { return this.control ? this.control.errors : null; }
get errors(): ValidationErrors|null { return this.control ? this.control.errors : null; }
get pristine(): boolean { return this.control ? this.control.pristine : null; }