到AngularJS和Twitter的引导相结合的最佳方式 [英] Best way to combine AngularJS and Twitter Bootstrap

查看:162
本文介绍了到AngularJS和Twitter的引导相结合的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想AngularJS和Twitter的引导合并成一个新的Web应用程序。好像AngularJS指令已为引导写入。见下面这个链接
http://angular-ui.github.io/bootstrap/

I would like to combine AngularJS and Twitter Bootstrap into a fresh web app. It seems like AngularJS directives have been written for bootstrap. See this link below http://angular-ui.github.io/bootstrap/

不过,仔细一看,似乎这些指令不够完全​​覆盖整个Twitter的引导。我可以结合这两个角度的UI引导code与原来的Twitter的引导得到完整性?可以把它摆在首位做些什么呢?
http://getbootstrap.com/

However, on careful look, it seems that these directives are not complete enough to cover the entire twitter bootstrap. Can I combine both the Angular-ui bootstrap code with the original Twitter bootstrap to get completeness? Can it be done in the first place? http://getbootstrap.com/

我无意中发现了一种叫角带角的项目。我可以将所有三个?
http://mgcrea.github.io/angular-strap/

I stumbled on another angular project called angular strap. Can I combine all three? http://mgcrea.github.io/angular-strap/

什么是结合AngularJS和Twitter的引导来获得完整的最好方法?

What is the best way to combine AngularJS and Twitter Bootstrap to get completeness?

我道歉,如果这个问题听起来就像是来自未来的人困惑,因为我真的很。

I apologise if this question sounds like it is coming from someone confused because I really am.

推荐答案

一般情况下,引导的CSS部分适用于AngularJS完全相同的方式,因为它与引导JavaScript的工作。所以只要你只需要使用CSS引导,你不必去想它。

Generally, the CSS part of Bootstrap works exactly the same way with AngularJS as it works with the Bootstrap JavaScript. So as long as you only want to use Bootstrap CSS, you do not have to think about it.

对于几乎所有的引导JavaScript功能,AngularUI提供了一种替代方法。例如。在CSS一般作品的导航栏而已,所以只是看在引导文档和实施。如果你需要一些响应功能,为导航栏,您将需要崩溃指令;一个例子在这里看到:<一href=\"http://stackoverflow.com/questions/14741988/twitter-boostrap-navbar-with-angular-js-collapse-not-functioning\">angular-ui导航栏

For almost all of the Bootstrap JavaScript functionality, AngularUI provides an alternative approach. E.g. the navbar in general works with CSS only, so just look at the Bootstrap docs and implement it. If you require some responsive features for the navbar, you will require the collapse directive; for an example see here: angular-ui navbar

所以,如果你觉得什么是AngularUI丢失,请您更具体与不齐全,足以覆盖整个Twitter的引导?我没有IM pression,有一个普遍的差距。

So if you think anything is missing in AngularUI, could you please be more specific with "are not complete enough to cover the entire Twitter Bootstrap"? I do not have the impression that there is a general gap.

此外, http://angular-ui.github.io/bootstrap/ 是最成熟的库任务。所以,如果你觉得有缺失的功能,我会强烈建议修补它,使拉请求。

Moreover, http://angular-ui.github.io/bootstrap/ is the most mature library for the task. So if you think there are features missing, I would strongly recommend to patch it and make a pull request.

这篇关于到AngularJS和Twitter的引导相结合的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆