← BYTES
AngularJS·Intermediate·Ref: 5.2.3

What is the basic purpose of the $http service?

Have a question about this video? Mention reference 5.2.3 when you contact us.

a.It only handles local file reads
b.It is a synchronous blocking network call
c.It renders HTML templates
d.It is AngularJS's built-in service for making HTTP requests (GET, POST, etc.) to a server, returning a promise for the response
$http wraps the browser's underlying XHR mechanism in a promise-based API, so a controller can call $http.get(url).then(function(response) {...}) to fetch data asynchronously and react once it arrives.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES523#AngularJS