I got the following html
<app-grid [columns]="columns" [data]="data" ></app-grid>
I want the data and columns properties to be immutable. The Grid should only show it. But in cases of sort or filtering the data would change, at least the order.
But here is my problem. If I access the data array and modify one property of an containing object. Like this.
this.data[0].name = "test"
The original gets changed. But I thought [data] is only one way data bound.
Could somebody point me in the right direction, to why this is happening and how I can omit it. I come from React where this would be pretty straight forward.

datato be immutable surely you shouldn't be modifying it like that? In the child component you should create a new array ofdatawith the relevant modifications.