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

How to make Input field as Array of string #99

Open
2717akansha opened this issue Jul 19, 2024 · 0 comments
Open

How to make Input field as Array of string #99

2717akansha opened this issue Jul 19, 2024 · 0 comments

Comments

@2717akansha
Copy link

In form step component, I want to change it to array of string but when I interface
export type MyForm = {
input1: string[];
};
and assign value to data
if (this.chipInput.trim()) {
this.chips.push(this.chipInput.trim());
this.data = this.chips;
this.chipInput = '';
}
getting error
Property 'input1' is missing in type 'string[]' but required in type 'MyForm'.ts(2741)
form-step.component.ts(5, 3): 'input1' is declared here.

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

No branches or pull requests

1 participant