How ajax works? Difference between angular js and jquery

Ajax: Ajax communicates with the server by using XMLHttpRequest Object. User send request from User Interface and JavaScript call goes to the XMLHttpRequest Object after that XMLHttp request is sent to the XMLHttpRequest Object. At that time server interacts with the database using php, servelet, ASP.net etc. The data is retrieved then the server sends data in the form of XML or Jason data to the XMLHttpRequest Callback function. Then HTML and CSS displayed the Data on the browser.

Note: The flow chart displays the process to display data on the browser.

AngularJS features: There are many features of AngularJS which are listed below:

  • Animation support
  • Data Binding
  • Deep linking
  • Dependency Injection
  • Form Validation
  • Reusable component (Directives, Custom Directives)
  • Routing
  • Unit Testing

jQuery features: There are many features of jQuery which are listed below:

  • AJAX calls
  • Effects and animations
  • Event Methods
  • DOM manipulation

Difference between AngularJS and jQuery: There is so many differences in between AngularJs and jQuery which are listed below:

  • AngularJS supports MVC(Modern View Controler) pattern to create a web app at client side whereas JQuery is not allowed to write an application code into MVC(Modern View Controler) pattern.
  • AngularJS came with RESTFul API whereas JQuery is not.
  • Deep linking routing is supported by AngularJS but it’s not allowed in jQuery.
  • AngularJS is requred short code compare to jQuery to do the same task.
  • AngularJS is supported “Two Way Data Binding” but JQuery does not allow “Two Way Data Binding”.
  • AngularJS is havier than jQuery.


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.