Protected_formReadonlycdrReadonlycontextProtected ReadonlyformOptionalinitialReadonlyloaded$Readonlyloading$ReadonlyloadingProtected ReadonlyloadingEmits when the submit method is executed without errors. The result of the submit method is passed as event object.
If no submit method is defined then emit after the submit button is clicked.
ReadonlysubmitReadonlysubmitting$StaticɵdirStaticɵfacPerforms the necessary setup when a FormArrayName directive instance is added to the view.
The FormArrayName directive instance.
Adds a new FormGroupName directive instance to the form.
The FormGroupName directive instance.
The code of the error to check
Optionalpath: string | (string | number)[]A list of control names that designates how to move from the current control to the control that should be queried for errors.
error data for that particular error. If the control or error is not present, null is returned.
For example, for the following FormGroup:
form = new FormGroup({
address: new FormGroup({ street: new FormControl() })
});
The path to the 'street' control from the root form would be 'address' -> 'street'.
It can be provided to this method in one of two formats:
['address', 'street']'address.street'ProtectedgetThe code of the error to check
Optionalpath: string | (string | number)[]A list of control names that designates how to move from the current control to the control that should be queried for errors.
whether the given error is present in the control at the given path.
If the control is not present, false is returned.
For example, for the following FormGroup:
form = new FormGroup({
address: new FormGroup({ street: new FormControl() })
});
The path to the 'street' control from the root form would be 'address' -> 'street'.
It can be provided to this method in one of two formats:
['address', 'street']'address.street'If no path is given, this method checks for the error on the current control.
ProtectedloadProtectedloadProtectedloadPerforms the necessary cleanup when a FormArrayName directive instance is removed from the
view.
The FormArrayName directive instance.
Performs the necessary cleanup when a FormGroupName directive instance is removed from the
view.
The FormGroupName directive instance.
ProtectedsubmitProtectedsubmitProtectedsubmitSets the new value for the provided FormControlName directive.
The FormControlName directive instance.
The new value for the directive's control.
Description
Tracks the list of added
FormControlNameinstances