Función de botón de edición de SPA de AngularJS

$scope.editItem = function(index) {
    $scope.amount = $scope.items[index].amount;
    $scope.description = $scope.items[index].description;
    $scope.deleteItem(index);
}
SAMER SAEID