Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an array of strings to a form using RxFormBuilder #645

Open
michelebenolli opened this issue Feb 3, 2024 · 0 comments
Open

Add an array of strings to a form using RxFormBuilder #645

michelebenolli opened this issue Feb 3, 2024 · 0 comments

Comments

@michelebenolli
Copy link

Describe the problem statement?

The FormBuilder class allows to add to a form property a list of string values.
The same syntax does not work with RxFormBuilder, because the array method does not accept the list of strings.

this.form = this.fb.group({
    name: 'Test',
    values: this.fb.array(['One', 'Two', 'Three'])
});

The expected solution you would like

The RxFormBuilder array method accepts a simple string array.

Package version

@rxweb/[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants