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
{{ message }}
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
I have noticed that running the generator without including Bootstrap causes bower to still loading jQuery: why this? Is it still necessary for something that I am missing?
Another thing: what do you think about switching from angular-ui to angular-strap for handling Boostrap directives? It looks more angular-like and doesn't require jQuery.
I pretty much agree with you @pasine, my only reserve is that angular will use jQuery instead of it's built-in jQuery-lite if jQuery is loaded into the window before angular loads. I'm wondering if switching to strictly jQuery-lite included with angular would cause any problems for users accustomed to full jQuery support with angular.element. What are your thoughts?
I understand, but this should be a generator, a starting point for all users, so IMHO it should be as lean as possible in terms of external resources.
If people really need jQuery, they can simply add it manually using bower as any other library.
Another potential good point to add to this is:
Using angular.element is strongly preferred over accessing jQuery directly, so code written by convention will not likely be affected by this change.
Activity
kingcody commentedon Sep 11, 2014
Just for the record,
angular-bootstrapdoes not require jQuery either.kingcody commentedon Sep 11, 2014
Also, I do believe that bootstrap/bootstrap-sass-official are the only packages that depend on jquery
pasine commentedon Sep 11, 2014
That's true, but I think the dependency should not be included into the main bower.json.
kingcody commentedon Sep 11, 2014
I pretty much agree with you @pasine, my only reserve is that angular will use jQuery instead of it's built-in jQuery-lite if jQuery is loaded into the window before angular loads. I'm wondering if switching to strictly jQuery-lite included with angular would cause any problems for users accustomed to full jQuery support with
angular.element. What are your thoughts?pasine commentedon Sep 11, 2014
I understand, but this should be a generator, a starting point for all users, so IMHO it should be as lean as possible in terms of external resources.
If people really need jQuery, they can simply add it manually using bower as any other library.
kingcody commentedon Sep 11, 2014
I completely understand.
Care to make a PR? If you do, I'd dare say you could remove jQuery altogether and let the bootstrap dependency bring it in when needed.
kingcody commentedon Sep 11, 2014
Another potential good point to add to this is:
Using
angular.elementis strongly preferred over accessing jQuery directly, so code written by convention will not likely be affected by this change.