twitter-bootstrap 我应该使用 Angular UI Bootstrap 还是普通的 Bootstrap 3?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20600564/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 19:29:05  来源:igfitidea点击:

Should I use Angular UI Bootstrap or plain Bootstrap 3?

angularjstwitter-bootstraptwitter-bootstrap-3angular-uiangular-ui-bootstrap

提问by Gabriel Smoljár

At time of writing Angular UI Bootstrap is based on Twitter Bootstrap 2 while the latest version is Bootstrap 3. If I were to write an application in Angular.js TODAY, what UI framework should I use? Angular UI or just plain Bootstrap?

在撰写本文时,Angular UI Bootstrap 基于 Twitter Bootstrap 2,而最新版本是 Bootstrap 3。如果我今天要在 Angular.js 中编写应用程序,我应该使用什么 UI 框架?Angular UI 还是普通的 Bootstrap?

What pros and cons are there? Both in the long and short term.

有什么优点和缺点?无论是长期还是短期。

采纳答案by JB Nizet

There is a bootstrap 3 branch going on in angular UI bootstrap, and almost everything has been migrated to bootstrap 3 in this branch. You can build this branch by yourself, and it's a matter of days or weeks before an official release that supports bootstrap 3 is made. You should go with it.

angular UI bootstrap 中有一个 bootstrap 3 分支,几乎所有东西都迁移到了这个分支中的 bootstrap 3。你可以自己构建这个分支,支持 bootstrap 3 的正式版本发布需要几天或几周的时间。你应该去。

回答by Jerska

As you can see on this link in the repo of Angular UI(Bootstrap3 support), support for Bootstrap3is almost ready.

正如您在Angular UI( Bootstrap3 support)的 repo 中的这个链接上看到的那样,对 的支持Bootstrap3几乎准备就绪。

You are talking about long-term, so I am assuming your application isn't going to production in the next month, so I would go with Bootstrap3and the bootstrap3branch of AngularUI. But if you want something stable right now, I thing you should go with Bootstrap 2.3and be prepared to update your code in the next months.

你说的是长期的,所以我假设你的申请是不会生产在未来的一个月,所以我会去Bootstrap3bootstrap3分支AngularUI。但是,如果您现在想要一些稳定的东西,我认为您应该继续Bootstrap 2.3并准备在接下来的几个月中更新您的代码。