Here is an example of my JSON structure:
var data = [{
"ID" : 3,
"discRec" : "Some sample record",
"Tasks" : [{
"ID" : 7,
"discParcel" : ["string1", "string2"]
}]
},
{
"ID" : 4,
"discRec" : "Some sample record 2",
"Tasks" : [{
"ID" : 8,
"discParcel" : ["string3", "string4"]
}]
}];
I am looking for a way to remove the first element of 'discParcel' which has an ID attribute of '8' and a parent ID attribute of '4' in Angular 2. Can someone provide guidance on how to achieve this?