Does AngularJS really need jQuery?
Solution 1:
jQLite is a very stripped-down version of jQuery. jQLite is enough for angular to work. This is to minimize dependencies.
Yet, if you load jQuery before angular, then angular will use jQuery.
Most of the time, you do not need to use jQuery. Even so much that, for beginners, it is advised to leave out jQuery completely as there would be a tendency to use jQuery when there is an easy / angular way. There has been so many examples on this (mostly showing and hiding elements through jQuery when there are ngShow
and ngHide
directives).
Later on, when you start to write directives, you then may need to add jQuery.
ngGrid
possibly does many things for which jqLite
would not suffice. Thus, they used jQuery
.
Documentation and features of jqLite: http://docs.angularjs.org/api/angular.element