You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following unchecked components require jQuery and/or Bootstrap's Javascript. We should seek to remove that dependency and write components "The Angular Way".
Menu
Modal
Select
Tooltip
Alert
Pagination
Progress
Tabs
The text was updated successfully, but these errors were encountered:
Why? What do you expect to gain by replacing the code the good folks of the Bootstrap team already written for us? Bootstrap.js is quite small and jQuery slim is not that big either (and is pretty much standard in the projects I've been).
There are countless articles on why this is a good idea. Someone has even dedicated a domain to it: http://youmightnotneedjquery.com
It mostly boils down to performance and the fact that modern browsers don't require something as complex as what jQuery offers.
It's even more unnecessary when coupling jQuery with AngularJS, considering that manual DOM manipulation in AngularJS is sort of an anti-pattern (sometimes forcing you to call $scope.$apply, which should be avoided if possible. As well, AngularJS already ships with jqLite (a version of jQuery with the bare minimum).
@svpace i thought the same, but @langdonx points convinced me, especially the AngularJS part - I came across a few serious issues when bootstrap code was not synced with angular and a few $scope.apply were needed.
The following unchecked components require jQuery and/or Bootstrap's Javascript. We should seek to remove that dependency and write components "The Angular Way".
The text was updated successfully, but these errors were encountered: