To perform HTTP calls in Angular, you’ll use its built-in HTTP client:
$http. If you haven’t noticed yet, official Angular components start with
$. You should not prefix components you create with a
$http is a pretty standard HTTP client with some of the usual suspects:
$http.post(), and so on. It is promise based.
What Are Promises?
- Chapter 5. Integrating Node with Angular
- from Write Modern Web Apps with the MEAN Stack: Mongo, Express, AngularJS, and Node.js
- Publisher: Peachpit Press
- Released: September 2014
Promises and Callback?