2015-08-28 49 views

回答

0

嘗試這樣

<tabset justified="true" style="padding:13px"> 
    <tab heading="Static profit" ng-click="onTabSelect('tab1')" > 
     content one       
    </tab> 
    <tab heading="Dinamic profit" ng-click="onTabSelect('tab2')"> 
     content two       
    </tab> 
</tabset> 

JS

$scope.onTabSelect=function(tabName){ 
    console.log(tabName); 
} 
+0

我如何以編程方式激活一個選項卡,而無需使用NG-重複? –

相關問題