为什么我的angular-bootstrap选项卡没有呈现?

时间:2022-06-20 10:54:17

Here is the site where you can view my angular app and also view source on it: http://clearsoftinc.com/dist/

这里是你可以查看我的角应用程序和查看源代码的网站:http://clearsoftinc.com/dist/。

There should be three blue tabs on the screen. I'm using the tabs directive from the ui-bootstrap directive for tabs (http://angular-ui.github.io/bootstrap/). I used to have it working and now for some reason its broken. I have tried for two days to fix it, with no luck.

屏幕上应该有三个蓝色的标签。我使用了来自uimbootstrap指令的选项卡指令(http://angular-ui.github.io/bootstrap/)。我过去常常让它工作,现在由于某种原因它坏了。我已经试了两天了,没有运气。

I have also posted a zip of the source code here: http://www.clearsoftinc.com/Archive.zip

我还在这里发布了源代码的zip: http://www.clearsoftinc.com/Archive.zip。

1 个解决方案

#1


2  

In controller.js, change

在控制器。js,改变

angular.module('clearsoftDemoApp', [])

to

angular.module('clearsoftDemoApp')

If 2nd parameter of module() is presented, it defines a new application instead of getting the existing one defined in app.js.

如果给出了模块的第二个参数(),它将定义一个新的应用程序,而不是在app.js中定义现有的应用程序。

#1


2  

In controller.js, change

在控制器。js,改变

angular.module('clearsoftDemoApp', [])

to

angular.module('clearsoftDemoApp')

If 2nd parameter of module() is presented, it defines a new application instead of getting the existing one defined in app.js.

如果给出了模块的第二个参数(),它将定义一个新的应用程序,而不是在app.js中定义现有的应用程序。