(newValue?: unknown, emitModelEvent?: boolean)
| 208 | // `SignalFormControl`), not on `AbstractControl`. We guard `registerOnChange` at runtime. |
| 209 | if (typeof (control as FormControl).registerOnChange === 'function') { |
| 210 | const onControlChange = (newValue?: unknown, emitModelEvent?: boolean) => { |
| 211 | this.discardPendingCustomValue(control); |
| 212 | if (emitModelEvent) { |
| 213 | this.viewToModelUpdate(newValue); |
| 214 | } |
| 215 | markForCheck(); |
| 216 | }; |
| 217 | (control as FormControl).registerOnChange(onControlChange); |
| 218 | this.subscription.add(() => (control as FormControl)._unregisterOnChange(onControlChange)); |
| 219 | } |
nothing calls this directly
no test coverage detected