You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: