File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ export class NgxErrorsDirective implements OnChanges {
1818
1919 control : AbstractControl ;
2020
21- done : boolean = false ;
21+ ready : boolean = false ;
2222
2323 constructor (
2424 private form : FormGroupDirective
2525 ) { }
2626
2727 get errors ( ) {
28- if ( ! this . done ) return ;
28+ if ( ! this . ready ) return ;
2929 return this . control . errors ;
3030 }
3131
@@ -34,12 +34,12 @@ export class NgxErrorsDirective implements OnChanges {
3434 }
3535
3636 hasError ( name : string ) {
37- if ( ! this . done ) return ;
37+ if ( ! this . ready ) return ;
3838 return this . control . hasError ( name ) ;
3939 }
4040
4141 getError ( name : string ) {
42- if ( ! this . done ) return ;
42+ if ( ! this . ready ) return ;
4343 return this . control . getError ( name ) ;
4444 }
4545
@@ -56,7 +56,7 @@ export class NgxErrorsDirective implements OnChanges {
5656
5757 checkStatus ( ) {
5858 const errors = this . control . errors ;
59- this . done = true ;
59+ this . ready = true ;
6060 if ( ! errors ) return ;
6161 for ( const error in errors ) {
6262 this . subject . next ( { control : this . control , errorName : error } ) ;
You can’t perform that action at this time.
0 commit comments