aor88

Untitled

Dec 11th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. //
  2. // $scope.delete = function (id) {
  3. // if (confirm("Are you sure you want to delete this Patient?")) {
  4. // console.log('Deleting patient with id : ' + id);
  5. // $http.delete('/patients/' + id)
  6. // .success(function (data) {
  7. // console.log(data);
  8. // findAll();
  9. // })
  10. // .error(function (data) {
  11. // console.log('Error: ' + data);
  12. // });
  13. // }
  14. // };
  15. // $scope.current = {};
  16. //
  17. // $scope.update = function (patient) {
  18. // console.log(patient._id);
  19. // $scope.current = patient;
  20. // };
  21. //
  22. // $scope.save = function () {
  23. // console.log($scope.current._id);
  24. // $http.put('patients/' + $scope.current._id + '/update', $scope.current).success(function (data) {
  25. // // $scope.donations = data;
  26. // // $location.path('/donations')
  27. // console.log(data);
  28. // findAll()
  29. // $scope.current = patient;
  30. // }).error(function (data) {
  31. // console.log('Error: ' + data);
  32. // });
  33. // }
Advertisement
Add Comment
Please, Sign In to add comment