我有一個關於我的Angular Bootstrap UI的問題。如何設置引導程序中的默認選項卡
我有類似:
<div class="container" ng-controller='sCtrl'>
<tabset id='tabs'>
<tab heading="Title1" >
</tab>
<tab heading="Title2" active ="true">
</tab>
<tab heading="Title3">
</tab>
</tabset>
</div>
我的問題是,每次我在我的選項卡中添加active='true'
,我得到:
TypeError: undefined is not a function
at Object.fn (http://test.com/lib/ui-bootstrap-tpls-0.10.0.js:2762:11)
at h.$digest (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js:106:71)
at h.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js:108:370)
at g (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js:71:120)
at C (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js:75:241)
at XMLHttpRequest.y.onreadystatechange (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js:76:280)
我搜索谷歌和移動引導文件之前,jQuery的文件加載但仍然得到相同的錯誤。任何人都可以幫助我嗎?非常感謝!
是我還是你使用active =「true」而不是active =「true」?? – Zerquix18
@ Zerquix18這是一個錯字,感謝您指出了它 – FlyingCat
@drew_w什麼是myTabs [1]?myTabs是id? – FlyingCat