$scope.deleteAsset = function(asset) {
console.log($scope.order.assets);
$scope.order.assets.forEach(function(key) {
if (key == asset.pKey) {
$scope.order.assets.splice($scope.order.assets.indexOf(key), 1);
}
});
console.log($scope.order.assets);
$scope.save();
}
No comments:
Post a Comment