Open RohanHart opened 4 years ago
reset() sets the control's value to null even if the generic value for the control excludes null.
reset()
null
I can't find a typing which prevents calling reset in this case so there seem two choices:
value: T | null
FormArray and FormGroup are more problematic as if a value is not provided for every child control some of those will be reset to null
reset()
sets the control's value tonull
even if the generic value for the control excludes null.I can't find a typing which prevents calling reset in this case so there seem two choices:
value: T | null
which will require null checks everywhere