restangular put sending object to url and not the body?


hello i am new to angularjs, i have a probleme when doing a PUT

$scope.submitProfile = function () {'user/me').put().then(function(results){
        results.username = "toto";

what i want is send, like username = “toto” and this should change the username to toto any help !
and another thing is the object i send should not go the url but to the body

the code i posted works but in the body nothing is send


Try customPut'user/me').customPUT(userObject).then(function(response){
  //Do your stuff here

Answered By – Rohan Kawade

Answer Checked By – Marilyn (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.