How do I edit an object with reactive forms? Lets' assume we have an array of objects :
people = [
{name: "Janek", color:"blue", id: 1},
{name: "Maciek", color:"red", id: 2},
{name: "Ala", color:"blue", id: 3},
]
If I want to edit object's properties with Template Driven approach - it's farily easy. HTML
*ngFor="let person of people"
and
ngModel="person.name" plus "person.color"
How to do this with Reactive Forms, so that I don't loose Id (and other properties)?