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.

Thursday 6 April 2017

Routing in AngularJS


In our previous Article we discussed about Services and Factories then Providers in AngularJS. Now we are going see about  important concept which is Routing in AngularJS. 


Routing in AngularJS allows your application becomes a Single Page Application (SPA). In your application, you have to navigate to different pages, at the same time your application should be act as SPA without page reload. This is called as Routing.

For the Routing, here we use ngRoute Module. This module routes our applications to different pages without page refreshment.


At first you need to include the routing library file.
<script src=”https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular-route.js”></script>

Next include ngRoute dependency in your application module.
var app = angular.module(“myApp”, [“ngRoute”]);

Now your application ready to access Routing.

To Read more about 




To know about the complete collections of Topics in Angularjs, Please visit Best AngularJS Training in Chennai.