$http Service in AngularJS — a practical guide to AngularJS $http with clear examples you can reuse in real projects.
AngularJS Tutorial Series (41/99). Prefer one article? Read the complete AngularJS tutorial.
Short description
Configure defaults with $httpProvider for headers and interceptors.
$http GET
$http.get('/api/items').then(function (res) {
vm.items = res.data;
}, function (err) {
vm.error = 'Failed to load';
});