I have a function which does a http POST request. The code is specified below. This works fine.
$http({
url: user.update_path,
method: \"POST\",
d
Starting from AngularJS v1.4.8, you can use get(url, config) as follows:
var data = {
user_id:user.id
};
var config = {
params: data,
headers : {'Accept' : 'application/json'}
};
$http.get(user.details_path, config).then(function(response) {
// process response here..
}, function(response) {
});