Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  $scope.addActivity = function(){
  2.         $http({
  3.             method: 'POST',
  4.             url: path,
  5.             data: {"Name":$scope.activityName, "Description":$scope.activityDescription, "Cover":$scope.activityCover, "id":idt, "Date":$scope.activityDate}
  6.         }).success(function(data){
  7.                 $scope.message = "Activity added successfully!";
  8.                 $location.path("/activity/"+idt);
  9.             }).error(function(data, status, header, config){
  10.                 $scope.message = "Activity add error!"
  11.             });
  12.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement