The documentation for FormBuilder.group() method lacks proper description of the controlsConfig argument.
It is described the following way:
A collection of child controls. The key for each child is the name under which it is registered.
and is typed this way: { [key: string]: any; }.
However, it's not clear what is the interface of the object values. The typing declarations are also missing in the code of this method.
I can't figure out how to use updateOn, value and disabled options at the same time with the form builder and it's not possible to understand from the documentation or type declarations.
However, it was quite unintuitive to figure out. The fact that you have to use an array with two objects is just incomprehensible.
I would suggest to update the documentation to make this case explicit and I would also suggest to update the API and typing declarations as well to make it more straightforward to use.
Description
The documentation for
FormBuilder.group()method lacks proper description of thecontrolsConfigargument.It is described the following way:
and is typed this way:
{ [key: string]: any; }.However, it's not clear what is the interface of the object values. The typing declarations are also missing in the code of this method.
I can't figure out how to use
updateOn,valueanddisabledoptions at the same time with the form builder and it's not possible to understand from the documentation or type declarations.What is the affected URL?
https://angular.io/api/forms/FormBuilder#group
Please provide the steps to reproduce the issue
No response
Please provide the expected behavior vs the actual behavior you encountered
No response
Please provide a screenshot if possible
No response
Please provide the exception or error you saw
No response
Is this a browser-specific issue? If so, please specify the device, browser, and version.
No response
The text was updated successfully, but these errors were encountered: