I'm trying to figure out how to remove an element from a reactive form.
Here's a plunker of a small example: http://plnkr.co/edit/HyhMDoMtek02CyKpZ7Wt?p=preview
When I hit the X
button, the form object is updated but the form UI still has the item on there.
How do I get the form to update itself on the remove?
In template you are iterating over widgets
So what you need to do remove from widgets the from form
Other options would be instead of iterate via object iterate via controls object