I am removing a row from an angularjs table using this code:
$scope.removeRow = function (index) {
if (index === -1) {
alert("Something gone wrong");
}else{
$scope.budgetdetails.splice(index,1);
}
However my json data and database are not updating. What do I need to do to update the data in both of them?