Angularjs Remove a Child Object from Json Object
问题 When i try to remove Child object i am getting an error TypeError: ctrl.otsact.tests.splice is not a function HTML : <tr ng-repeat="act in ctrl.otsact.tests" ng-if="ctrl.editToggle"> <td><span ng-click="ctrl.removeOTSACT(act.id)"> Delete </span></td> </tr> Script : i am suing splice to remove the child object form json object function removeOTSACT(index) { ctrl.otsact.tests.splice(index, 1); } Json Object { "ACT":{ "name":"ACT", "tests":{ "73":{ "id":73, "official_test_id":1, "student_id"