DEV Community

Discussion on: Template Driven Forms in Angular

Collapse
jessycormier profile image
Jessy Cormier

Would you have a solution for lets say this interface

Interface Person {
  firstName: string;
  someCheckboxPropList: number[];
}

and data could be anything really

const dynamicData = [
  { name: 'name1', value: 1 },
  { name: 'name2', value: 2 }
];

I haven't been able to create a solution that can handle setting the dynamicData that's rendered as checkboxes values to the someCheckboxPropList property.