Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.addActivity = function(){
- $http({
- method: 'POST',
- url: path,
- data: {"Name":$scope.activityName, "Description":$scope.activityDescription, "Cover":$scope.activityCover, "id":idt, "Date":$scope.activityDate}
- }).success(function(data){
- $scope.message = "Activity added successfully!";
- $location.path("/activity/"+idt);
- }).error(function(data, status, header, config){
- $scope.message = "Activity add error!"
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement