Closed ferdipekcikmaz closed 7 years ago
I did something like this but I do not know the best solution.
in html
ng-click="deleteMasraf(item, m,$parent.$index)"
in controller
$scope.deleteMasraf = function (item,m,parentIndex) {
item.dosya[parentIndex].masraf.splice(item.dosya[parentIndex].masraf.indexOf(m),1);
$scope.customer = item;
$scope.customer.put();
};
{ "_id" : ObjectId("58e35423c575f44bec29d1fd"), "name" : "Ferdi Pekçıkmaz",
}
It is my collection. I want to delete
Is it possible? if it is possible how? and i want to insert some item in same list. could you be of assistance about this topic