I am having an object as below
result = [{
"name": "jmd",
"children": [
{
"name": "ppp1",
"children": [
{
"name": "feeder",
"children": [
{
"name": "rmu1",
"children": [
{
"name": "IT1",
"children": [
{
"aname": "Asset123",
"value" : "233"
}
]
}
]
}
]
}
]
}]
I need to detect the change every time the value changes using ngOnchanges
event of Angular 6
.
it seems the angular ngOnchanges
doesn't detect the deeply nested object.I have tried different things like
this.chartData = Object.assign({}, result);
this.chartData = {...result};
Nothing is working, any help would be appreciated :)