I have an property:
public rows: any[];
Then I fill this array in constructor:
this.rows.push({"id": 1, "subject": "Subject", "scope": "Learn basics", "hours": 2});
In template I iterate array like as:
<tr *ngFor="let p of rows; let i = index;">
So, if I remove element from array:
this.rows.splice(this.rows.length - 1, 1);
It does not change model, I see as before one row in array.