angular
angular copied to clipboard
[Question] [Custom Components] Value prop as an array
Hi, there. I try to use a custom component with array of strings, but @input value changed to the string (first element of the array) after form submission. Could you please provide an example how to use a custom component with an array.
this.updateValue(['1','2','3']) ;
// 'value' is [ "1", "2", "3" ];
submit form
// 'value' is "1";
Also, when I try to provide the <formio ... [submission]="{ fieldName: ['string1', 'string2'] } " > the value prop in the component is equal to 'string1'