joel-wenzel / ng-flowchart

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.
Apache License 2.0
141 stars 49 forks source link

How to make Input field as Array of string #99

Open 2717akansha opened 3 months ago

2717akansha commented 3 months ago

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.