removeControl method

  1. @override
void removeControl(
  1. NgControl? ctrl
)
override

Remove a control from this form.

Implementation

@override
void removeControl(NgControl? ctrl) {
  // We will not remove the control if it is dropped, but we need to cleanup
  // any validators that may have been added.
  ctrl?.control?.validator = null;
}