twitter-bootstrap - angularjs Bootstrap 标签使用

标签 twitter-bootstrap angularjs

我想实现 this 中的 Bootstrap 选项卡例子,
使用 angularjs bootstrap - 它包含指令 tabbable 和 tabPane。
它不起作用,我不知道如何让球滚动。

<tabbable>
    <tabPane title="first">
        <div ng-controller="FirstCtrl"></div>
    </tabPane>
    <tabPane title="tabbable">
        <div ng-controller="SecondCtrl"></div>
    </tabPane>
</tabbable>

应用程序.js:
angular.module('orders_manage', ['orders_manage.services', 'bootstrap'])
.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {

$routeProvider
    .when('/first', { templateUrl:'/partials/first.html', controller:FirstCtrl})
    .when('/second', { templateUrl:'/partials/second.html', controller:SecondCtrl})

最佳答案

如果您查看源代码,您会发现这些指令仅限于类名:https://github.com/angular/angular.js/blob/v1.0.x/src/bootstrap/bootstrap.js#L54

重写您的示例以使用 <div class="tabbable"><div class="tab-pane">将解决问题。

关于twitter-bootstrap - angularjs Bootstrap 标签使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12251684/

相关文章:

jquery - 自举视差速度

html - 如何集中 Bootstrap 网格

javascript - 在 AngularJS 和 IONIC 中的 Controller 之间共享数据

javascript - 使用隔离范围获取隐藏按钮的属性

javascript - 从 AngularJS 将文本插入 HTML

javascript - 使用 Typescript + ngMock 模块

node.js - 发生未处理的异常: Cannot read property 'Minus' of undefined

css - 当有一个带有ng-repeat的元素时如何隐藏编号

html - Twitter Bootstrap 网格不能跨浏览器均匀工作

android - 响应式 Bootstrap 问题