For the life of me I cannot figure out how to get Angular 6 Reactive forms to play nice with dynamic checkboxes. I will try to post a simple senario.
lets say I have an AJAX call that returns the following type of data
{
"name": "Name1",
"items": [{type: "banna"}, {type: "apple"}]
},
{
"name": "Name2",
"items": [{type: "orange"}, {type: "strwberry"}]
}
I simple want to add 4 checkboxes, to the screen (which I can do many ways) but I dont know how to plug them up with reactive forms
I also need to rehydrate the form assuming it was an existing record from the database
How on this planet can this be done? Any example will do