POST Requests in AngularJS — a practical guide to AngularJS POST $http with clear examples you can reuse in real projects.
AngularJS Tutorial Series (64/99). Prefer one article? Read the complete AngularJS tutorial.
Short description
Set Content-Type when talking to strict APIs.
POST
$http.post('/api/items', { name: vm.name })
.then(function (res) { vm.created = res.data; });