2013-10-15 24 views
1

我一直在尝试将AngularUI连接到Bootstrap 3无济于事。我抓住了适当的AngularUI代码从引导3支在这里: https://github.com/angular-ui/bootstrap/tree/bootstrap3_bis2将AngularUI连接到Bootstrap 3抛出错误

我选择了AngularUI提示指令,因为一个简单的“测试案例”,看看我是否能得到它的所有接线。

有错误我收到的是: 未捕获的错误:没有模块:ui.bootstrap

我共享了以下SRC代码Dropbox的链接。

Views/Home/index.cshtml contains the markup with references to angularjs and bootstrap 
js/directives contains the only directive I am currently testing out which is the "tooltip" directive. 
与SRC代码

Dropbox的链接 https://www.dropbox.com/sh/elwn0su5qwnqa27/zetaMxAa4Q

而不是我不得不手动下载引导3个指令,并将它们放在我的项目,现在就在一个可供AngularUI-Bootstrap3指令CDN像有为AngularUI-Bootstrap2?

感谢您的帮助,

V/R

克里斯

+0

我已经成功地使用了Bootstrap 3而没有angular-ui bootstrap3分支。我使用了ui-bootstrap 0.6.0的自定义版本,并且使用了angular-ui mask和event,没有任何问题。我还会补充一点,我使用了没有问题的工具提示指令。 –

回答

4

这是因为您尝试提取只有一个AngularUI来源的一部分,而不是编译版本。

所以你缺少'ui.bootstrap'的模块声明(当然还有其他部分)。

由于Bootstrap 3的兼容性尚未完成,所以此AngularUI版本没有编译版本(也没有更多CDN)。

你必须从分支bootstrap3_bis2中获取所有的源代码,并用grunt构建它们。它在项目README中解释(贡献于项目>构建)。

它会生成2个JS文件(一个被缩小,另一个不是),你必须将其中一个包含到你的页面,它会正常工作。

+0

感谢您的回复!这就说得通了!谢谢您的帮助! – cpeele00

相关问题