Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // $scope.delete = function (id) {
- // if (confirm("Are you sure you want to delete this Patient?")) {
- // console.log('Deleting patient with id : ' + id);
- // $http.delete('/patients/' + id)
- // .success(function (data) {
- // console.log(data);
- // findAll();
- // })
- // .error(function (data) {
- // console.log('Error: ' + data);
- // });
- // }
- // };
- // $scope.current = {};
- //
- // $scope.update = function (patient) {
- // console.log(patient._id);
- // $scope.current = patient;
- // };
- //
- // $scope.save = function () {
- // console.log($scope.current._id);
- // $http.put('patients/' + $scope.current._id + '/update', $scope.current).success(function (data) {
- // // $scope.donations = data;
- // // $location.path('/donations')
- // console.log(data);
- // findAll()
- // $scope.current = patient;
- // }).error(function (data) {
- // console.log('Error: ' + data);
- // });
- // }
Advertisement
Add Comment
Please, Sign In to add comment