When would you use AngularJS vs jQuery?

Technology CommunityCategory: jQueryWhen would you use AngularJS vs jQuery?
VietMX Staff asked 3 years ago
  • jQuery – is a library used for DOM Manipulations – Has nothing to do with models – don’t have two-way binding feature – becomes complex and difficult to maintain when size of project increases – Sometimes you have to write more code to achieve the same functionality as in Angular
  • Angular – is a MVVM Framework – Used for creating SPA (Single Page Applications) – Has key features like routing, directives, two way data binding, models, dependency injection, unit tests etc – is modular – Maintainable, when project size increases – is Fast and many more.

Basically jQuery is a single tool (solves one specific problem: dom manipulation) where AngularJS is a whole toolbox with all kind of tools for different problems (routing, modelbindings, dom manipulation, etc.). Actually jqLite (subset of jQuery) is part of the AngularJS and you use it to solve the dom-manipulation thing.