Answer the question
In order to leave comments, you need to log in
How to make a post request in angularjs?
I make a request on click:
$scope.sentPhoto = function() {
var data = {id_user: '31'};
$http.post('http://site/api/v1/messages/index', data)
.success(function(data)
{
console.log(data);
});
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question