Thursday 13 April 2017

Detailed explanation about $http Service in Angularjs



In out previous Article we discussed about Routing in AngularJS. Here we go about importance of $http service in Angularjs. To know more about the complete Services and Directives in AngularJS, Please visit AngularJS Training in Chennai.
 $http is a core AngularJS service which is used to create communication with remote http servers via Browser’s inbuilt object XMLHttpRequest.

$http.get(‘/someUrl’, config).then(successCallback, errorCallback);
$http.post(‘/someUrl’, data, config).then(successCallback, errorCallback);
$http.put(‘/someUrl’, data, config).then(successCallback, errorCallback);
$http.delete(‘/someUrl’, config).then(successCallback, errorCallback);
Here the get and post are the method of passing data to the url.  There are few more methods are available as follows.
To read more, please visit Best AngularJS Training in Chennai.