midAngularJS
What is AngularJS $http service?
Updated Apr 28, 2026
Short answer
$http is used for AJAX calls.
Deep explanation
$http service communicates with backend APIs using promises.
Real-world example
Fetching user data from server.
Common mistakes
- Not handling errors.
Follow-up questions
- What is promise?
- Why $http?