bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

refactor(): Support bootstrap 3.0

Open lichtner opened this issue 13 years ago • 105 comments

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?

lichtner avatar Apr 17 '13 13:04 lichtner

OK guys, big day: with 0.6.0 out of the doors we can focus on BS3 support, yuppie :-) I was thinking how to move forward fast without spending too much time maintaining 2 branches and here is my proposal:

  • I'm assuming that in the mind/long term BS3 will be the only version that we want to support
  • let's aim at releasing BS3 support as 0.7.0. It would be the first version dropping BS2.3 support
  • we would still do a couple of releases with bug fixes for BS2.3, those would be released as 0.6.1, 0.6.2 etc.

If this sounds like a reasonable plan I would create a maintenance branch for 0.6.x. This branch would never be merged back to master, it would just hold 0.6.x releases. The current BS3 branch would be rebased on top of master and merged. From this point on we would be able to work towards 0.7.0 in master.

@angular-ui/bootstrap how does it sound?

For all the people that expressed interest in helping out - I'm going to open separate issues today for all the missing items we need to cover, but I think that support for collapse is the only difficult part. Also, it would be totally awesome if someone could help us update the demo page to make it prettier / looking more like BS3. In any case all the remaining issues are going to be linked from this milestone: https://github.com/angular-ui/bootstrap/issues?milestone=6&state=open

pkozlowski-opensource avatar Sep 09 '13 17:09 pkozlowski-opensource

@pkozlowski-opensource Sounds good. BS3 is unavoidably our target and there is not need to stall it.

Most of the directives (if not all) are going to work with just a template change, so if we don't want or cannot provide an alternative option for an easy transition between 2.3 and 3 at least let's keep the old templates somewhere easy to be found.

bekos avatar Sep 11 '13 14:09 bekos

Hi, just getting on the angular/noJQuery bandwagon myself and it's pretty cool for now

For the branching strategy, you could also adopt a naming convention like jQuery does with 1.0/2.0. Instead of jumping from BS 2.0 / 0.6.x to BS 3.0 / 0.7.x you'd get 3.6.x / 2.6.x

btw, aren't there similar issues with angular 1.2 breaking things too ?

ghost avatar Sep 11 '13 15:09 ghost

@hall5714 does the plan outlined here https://github.com/angular-ui/bootstrap/issues/331#issuecomment-24095433 makes sense for you? It would be really good if we could focus on BS3 without spending too much time on merging / rebasing 2 branches.

pkozlowski-opensource avatar Sep 11 '13 17:09 pkozlowski-opensource

@pkozlowski-opensource Sounds great. The shorter the time we are rebasing two branches the better. And while collapse is a pain the rest seems pretty straight-forward.

hallister avatar Sep 11 '13 20:09 hallister

I am having some issues mixing BS3 and angular-ui modals, is this the right place to have that discussion?

here is a plunker that shows the problem http://plnkr.co/edit/H9Cgu6qZbwGplZD0KqgQ?p=preview

It has to do with the directive modal-window missing some features (like setting display:block), and the class modal-open needs to be appended to the body of the HTML to allow for proper scrolling on mobile devices. I could create a pull request to fix these issues, but I am not sure if there is already a BS3 effort underway.

Thanks,

acornejo avatar Sep 16 '13 21:09 acornejo

@acornejo look at the bootstrap3_bis2 branch.

ProLoser avatar Sep 16 '13 23:09 ProLoser

@ProLoser thanks. I had looked at it, but your comment made me realize I should be using 0.6.0 since 0.7.0 apparently is something else.

This branch fixes a lot of issues, but has others (specifically with the $scope). I opened a new issue for that.

acornejo avatar Sep 17 '13 14:09 acornejo

Will 0.7 work with angularjs 1.1.5 or +?

Also I do not see a dist in either boostrap3_bisX branches. Can someone please let me know what I can use today and right now to remedy incompatibility issues.

pbrain19 avatar Sep 23 '13 16:09 pbrain19

You need to build manually. Almost everything is fixed except for progress bar. On Sep 23, 2013 9:57 AM, "pbrain19" [email protected] wrote:

Will 0.7 work with angularjs 1.1.5 or +?

Also I do not see a dist in either boostrap3_bisX branches. Can someone please let me know what I can use today and right now to remedy incompatibility issues.

— Reply to this email directly or view it on GitHubhttps://github.com/angular-ui/bootstrap/issues/331#issuecomment-24935210 .

ProLoser avatar Sep 23 '13 21:09 ProLoser

I do not know how to build manually. Any chance someone can just pass me a simple download link?

pbrain19 avatar Sep 24 '13 14:09 pbrain19

I am not at my development computer at the moment so I can't share a link with you. However, if you plan on developing something using javascripts, its probably a worthy use of your time to learn how most open source javascript projects are compiled.

Most javascript projects require node and npm to be installed, as well as grunt-cli for the actual "building"

Both node and npm are available for download on their respective websites, and should also be available for your package manager of choice (e.g., brew/macports/etc in OSX, apt-get/yum/etc in linux).

To install grunt-cli using npm, simply do:

npm install -g grunt-cli

Now to build a traditional javascript project (like angular-ui) the traditional steps are:

# download repository
git clone $URL
# change directory to the repository
cd $REPONAME
# install in the folder all the project dependencies
npm install
# start the build process using grunt
grunt

Of course, you should replace $URL and $REPONAME for the specific project.

acornejo avatar Sep 24 '13 15:09 acornejo

First of all thanks, never knew you had to compile these things. Second What's the ETA for the 0.7? and 3rd I always dreamed of contributing. I'm a total noob but I use angular for all my stuff. Let me know how I can help.

pbrain19 avatar Sep 24 '13 16:09 pbrain19

These steps worked for me: git clone https://github.com/angular-ui/bootstrap.git cd bootstrap npm install git checkout origin/bootstrap3_bis2 grunt

I new styles work great on the date-picker. Thanks!

getsetbro avatar Sep 24 '13 18:09 getsetbro

@getsetbro I did the same but did didn't see the accordion working even in the docs. I was able to compile and all. During compilation I got an error stating that it couldn't find google chrome extension and so on. I used --force on the grunt method and out came a dist folder. I got into the docs only to see that the accordion is not working. Is this the only one that does not work?

pbrain19 avatar Sep 24 '13 20:09 pbrain19

I first had my app working with the last stable version of aui-bootstrap. Then I switched out the: ui-bootstrap-tpls-0.6.0.min.js file with the newer ui-bootstrap-tpls-0.6.0-SNAPSHOT.min.js

The build steps are only need for the SNAPSHOT version.

On Tue, Sep 24, 2013 at 3:42 PM, pbrain19 [email protected] wrote:

@getsetbro https://github.com/getsetbro I did the same but did didn't see the accordion working even in the docs. I was able to compile and all. During compilation I got an error stating that it couldn't find google chrome extension and so on. I used --force on the grunt method and out came a dist folder. I got into the docs only to see that the accordion is not working. Is this the only one that does not work?

— Reply to this email directly or view it on GitHubhttps://github.com/angular-ui/bootstrap/issues/331#issuecomment-25040644 .

getsetbro avatar Sep 24 '13 20:09 getsetbro

It looks like the $close and $dismiss methods that were previously added to the modal scope are no longer present in this branch.

keeth avatar Sep 25 '13 09:09 keeth

Dear all,

I am developing a project with angularjs 1.2 and want to use bootstrap 3 (mostly for css tho, not much for the plugin)

I checkout the project and the following branches

 master
  remotes/origin/HEAD -> origin/master
  remotes/origin/bootstrap3_bis
  remotes/origin/bootstrap3_bis2
  remotes/origin/bootstrap3_bis2_modalPatch
  remotes/origin/bootstrap3_bis2_progressPatch
  remotes/origin/gh-pages
  remotes/origin/goldfish
  remotes/origin/issue832
  remotes/origin/master
  remotes/origin/pr834
  remotes/origin/ttip_tests

Which branch should I start with ? bootstrap3_bis2 ?

lpfister avatar Sep 25 '13 12:09 lpfister

bootstrap3_bis2

diorray avatar Sep 25 '13 12:09 diorray

thanks !

lpfister avatar Sep 25 '13 13:09 lpfister