The Github readme is not entirely clear on this point... Are they alternatives, or, meant to work together?
-
Actually the home page says: Dependencies This repository contains a set of native AngularJS directives based on Twitter Bootstrap's markup and CSS. As a result no dependency on jQuery or Bootstrap's JavaScript is required. The only required dependencies are: AngularJS (minimal version 1.0.4 or 1.1.2) Bootstrap CSS @bjorke - do you see how we could clarify further?pkozlowski.opensource– pkozlowski.opensource2013-09-05 11:23:58 +00:00Commented Sep 5, 2013 at 11:23
-
Thanks Pawel for making this tool! As you can see in my comments below, I was unclear on the recommendation to remove the standard bootstrap js -- that it interferes(?). I think the word "replacement" is key. I was also a bit confused, I think, because the demo page doesn't include all the available directives (so my existing page, which had used bootstrap tabs, now failed, until I updated it). Thanks again!'bjorke– bjorke2013-09-06 05:13:28 +00:00Commented Sep 6, 2013 at 5:13
-
Oops, somehow I missed the tabs sample! My mistake. Working great now, thanks again.bjorke– bjorke2013-09-06 06:14:32 +00:00Commented Sep 6, 2013 at 6:14
2 Answers
UI Bootstrap is a replacement for the bootstrap JS portion it is clearly stated but not on the main page.
Native AngularJS (Angular) directives for Twitter's Bootstrap. Small footprint (5kB gzipped!), no 3rd party JS dependencies (jQuery, bootstrap JS) required! http://angular-ui.github.io/bootstrap/
2 Comments
Dean Sofer on the subject: http://deansofer.com/posts/view/20/AngularJS-and-Bootstrap
Think that explains it rather well... And give you insight into "Why" as well...
We have 2 projects: the AngularUI Bootstrap project which is recreating everything in pure AngularJS code, and removes the Bootstrap.js dependency. Then we have the new Angular-Strap which simply wraps the existing Bootstrap.js creating additional dependencies and imposing a fairly opinionated templating scheme.
And some links to the to mentioned projects for completeness:
- Angular UI Bootstrap: http://angular-ui.github.io/bootstrap/
- Angular Strap: http://mgcrea.github.io/angular-strap/
What side to agree with is up to you.