UI-Bootstrap 和 Twitter Bootstrap 有冲突吗?

Any conflicts between UI-Bootstrap and Twitter Bootstrap?

Angular UI-Bootstrap and Twitter Bootstrap之间有冲突吗?

如果有更 Angular 友好的 UI 包可用,我会尽量避免将 jQuery-UI 与 AngularJS 一起使用。我已经开始使用 Twitter Bootstrap,所以我不想卸载 Twitter Bootstrap。

不,没有冲突。特别是因为 ui-bootstrap 依赖于 Twitter Bootstrap。

来自链接文档:

This repository contains a set of native AngularJS directives based on Bootstrap's markup and CSS. As a result no dependency on jQuery or Bootstrap's JavaScript is required. The only required dependencies are:

AngularJS (requires AngularJS 1.3.x, tested with 1.3.13). 0.12.0 is the last version of this library that supports AngularJS 1.2.x.

Bootstrap CSS (tested with version 3.1.1). This version of the library (0.13.0) works only with Bootstrap CSS in version 3.x. 0.8.0 is the last version of this library that supports Bootstrap CSS in version 2.3.x.

如果你全力以赴 Angular 然后坚持使用 AngularStrap or Angular UI Bootstrap,不要将它与 Twitter Bootstrap JS 库混合。提到的两个 Angular 项目都使用了 Bootstrap CSS,但它们完全取代了 Bootstrap JS 库,几乎包含了所有功能。

除了加载这两个库的不必要的膨胀之外,您最终会遇到将 Bootstrap JS 库与 Angular 集成以进行模型绑定等问题。