()
| 120 | } |
| 121 | |
| 122 | ngDoCheck() { |
| 123 | if (this.ngControl) { |
| 124 | // We need to re-evaluate this on every change detection cycle, because there are some |
| 125 | // error triggers that we can't subscribe to (e.g. parent form submissions). This means |
| 126 | // that whatever logic is in here has to be super lean or we risk destroying the performance. |
| 127 | this.updateErrorState(); |
| 128 | } |
| 129 | |
| 130 | this._rawValue.set(this._elementRef.nativeElement.value); |
| 131 | } |
| 132 | |
| 133 | /** Gets whether the input is empty. */ |
| 134 | isEmpty(): boolean { |
nothing calls this directly
no test coverage detected