Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send data of ckeditor model via post $http #47

Open
fagnerdireito opened this issue May 20, 2016 · 0 comments
Open

How to send data of ckeditor model via post $http #47

fagnerdireito opened this issue May 20, 2016 · 0 comments

Comments

@fagnerdireito
Copy link

fagnerdireito commented May 20, 2016

Hi, how to sendo data from form via post $http:
I try but dont send new data, see my example:

     app.controller('FormCtrl', function ($scope, $http, $httpParamSerializerJQLike, $state) {

  $scope.submitForm = function() {

$http(
  {
    method: 'POST',
    url: url+ 'save_edit_document',
    data: $httpParamSerializerJQLike($scope.doc),
    headers: {'Content-Type': 'application/x-www-form-urlencoded'}
  }
  ).success(function(){
  $state.go('showDoc', {'itemId': $scope.doc.id});
      });
    };
  });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant