A lightweight Angular Library for building drag and drop flow charts. Chart behavior and steps are customizable. Data can be exported or uploaded in json format.
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.
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.