Looking for guidance from an Angular expert. I want to know how to modify the header for POST in the code snippet below:
'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'?
The provided code is as follows:
var tableModule = angular.module('theApp', ['ui-rangeSlider','ngScrollbar']);
tableModule.factory('Services', ['$http',
function($http) {
return {
get : function($path, callback) {
return $http.get($path).success(callback);
},
post : function($path, $data, callback) {
return $http.post($path, $data).success(callback);
}
};
}]);