refactor(): Support bootstrap 3.0
Hi guys, thanks for your nice work. I would like to ask you when do you start support bootstrap 3.0. Some directives work some don't. E.g. modal doesn't work.
I am developing new app but for me (IMHO for many other developers too) is better to start to build new project on BS3 WIP version because I hope it come sooner then I finish my app.
I would like to propose create BS3 branch now and start to modify directives for it.
What do you think about it?
FYI, I just migrated my app to 1.2.0rc1 and the datepicker works. I tried 1.2.0rc2 and the datepicker broke.
i do see commits based for accordion (like this: https://github.com/angular-ui/bootstrap/commit/8cbeff0ffe960f5f46b9b886fa3db2d0c1ff2a9f) but i can't get it to work. Should it already work or am i just doing something wrong? (i just take the basic accordion example http://angular-ui.github.io/bootstrap/ dropped in bootstrap 3.0 css and the build from bootstrap3_bis2 branch)
I've realized that for a lot of the BS3 problems that arise when using angular-ui/bootstrap (modals, progressbars, collapse, etc) one can find solutions searching through the various pull-requests and issues in github. For other problems its required to create work arounds or patches (which I have done). I would like to contribute back and create new issues with pull-requests to get these patches merged, but I realized I have a lot of questions on how to do this in a way that it is helpful for the project maintainers?
Against which branch should I create the pull-request? What if the pull-requests depends on someone else's unmerged pull-request (as is frequently the case)? What if the pull-request can be made stand-alone but at the cost of duplicating code available in another pull-request? Why so may bis2_* branches in the repo don't get merged into one? Is there a reason why seemingly well tested and working pull-requests, such as #991 , #1001 , etc.. are not getting merged?
I am aware that, as in most open source projects, all development is done by people who have real jobs and families, and can only work on this occasionally on their spare time. This is precisely why I think it is important to have clear rules/protocols of how others can contribute, so that we can chip in and give a little back to the awesome project maintainers/developer, and hopefully relieve them a bit from the grunt work involved in bringing up angular-ui up to speed with BS3.
@acornejo The branch to be used for PRs is currently this one: https://github.com/angular-ui/bootstrap/tree/bootstrap3_bis2 You've seen many branches since the BS3 branch is regularly rebased on top of master.
As for PRs not getting merged - reviewing things takes time, often more than writing initial code. So it simply not o 5 minutes job.
Hope this clarifies things a bit.
I went through the steps and wrote them up, From Windows to using git npm & grunt: http://blog.getsetbro.com/from-clean-windows-to-git-npm-and-grunt
@acornejo You mentioned that you've gone through and compiled many of the outstanding PRs and commits into a more workable build. Do you have this in a form that others could use? I would like to get started with BS3 right now but all of the bis2_* branches are still missing some key controls.
Thanks in advance!
@johnsouth at the moment no, since I have it as a private repository.
The problem is that whatever code you build on top will most certainly break in the future, since some of the PRs I have used might undergo more changes before getting committed, or even worse, they might never make it to master branch.
For instance, for the problems I found with transclusion + modals, there are several fixes available in the comments of the issue (some of them not even pull-requests). I picked the one that seemed to make more sense to me, but it is quite likely the maintainers of the project will opt for another solution. (The same is true for the collapse behavior, where there are two partially complete PR's, one with a simple but incomplete solution, and the other with a complete solution, albeit more complex than one would like).
In other words, unless you are doing a project for fun (and don't mind having to rewrite it several times because api changes), I wouldn't recommend you pursue the same path I have.
All that being said, if you still want to go through this avenue let me know and I can try to create a more stable branch and publish that fork on github (right now I have strayed too far from the repo to be usable to anyone else, since I have no documentation on the changes I made).
@acornejo That would be much appreciated! I can handle a little rewriting in exchange for living on the bleeding edge.
A quick question regarding ui.bootstrap.modal: why using a Service instead of a Directive?
Settings like scope and resolve are confusing for beginners like me. Also think manipulating the DOM inside two controller is breaking the Angular way.
@devyreham modal is one of those rare use cases where service is much better than a directive. This was thoroughly discussed with the AngularJS core team and part of the recommendation. As for the confusing part - well - resolve is the same as used in AngularJS routes, not sure if there is a way to make it less confusing. All the alternatives I know of are even more confusing and / or can result in memory leek.
Hi, I have just upgraded an app to Bootstrap 3.0 and downloaded the latest ui-bootstrap code as well. I'm running into an issue with the $modal service whereby the backdrop appears, however the modal does not. Just wondering if this has been resolved yet, or if I would need to possibly checkout the https://github.com/angular-ui/bootstrap/tree/bootstrap3_bis2 branch to fix. Thank you!
Nolan
@devyreham +1
@nolandubeau https://github.com/angular-ui/bootstrap/tree/bootstrap3_bis2_modalPatch works for me. I really wish someone would start merging...
Does anyone know what state accordions are in? I checked out bootstrap3_bis2 but it's not functioning.
@cesarandreu I pulled in these 2 changes and both accordion and collapse work great:
https://github.com/caitp/ui-bootstrap/commit/c0760691edc08bf659be09d570e03390f0c0b792 https://github.com/caitp/ui-bootstrap/commit/30aedcf8c9252c443f512ff78cddb0fcd4be974e
@nolandubeau +1 on the $modal not showing issue, hope this gets merged
Hey guys, Any update for releasing bootstrap 3 support?
It will be great if there's a bs3 support status checklist, and also a beta version for testing/packaging.
+1 to bs3 support status checklist, and also a beta version for testing/packaging
:+1: for checklist and beta version