Monday, July 20, 2015

Ajax using AngularJS

Ajax stands for Asynchronous JavaScript and XML, as the name suggests Ajax is used for asynchronous operations between the client and the server. Here by client we refer to the AngularJS layer and by server we refer to the API Server/Service.

Ajax makes the UI more interactive and user friendly, before Ajax was introduced every time a request is made to the server to fetch some data the whole UI page in the browser will get re-loaded to reflect the change, it becomes more cumbersome for large applications/forms, Ajax helps us to change the UI layer without re-loading the page, instead specific Ajax calls are made to the server to fetch relevant data and the UI DOM is updated to reflect the changes without having to refresh the whole page.

 Ajax is one of the key concepts any modern Web development tool / scripting language should support, and no doubt that AngularJS supports Ajax. AngularJS supports Ajax by providing services like $http & $resource, these services enable us to make server side Ajax calls and update the UI DOM.

Search Flipkart Products:

No comments: