<div ng-show="isAppLoading" ng-cloak ng-controller="accListMainCtrl as vm" style="height:100%;">
<h4>{{vm.dlg.active}}</h4>
<uib-tabset>
<uib-tab heading="Accounts list tree" ng-click="vm.load(1)" active="vm.dlg.active == 1"></uib-tab>
<uib-tab heading="Accounts data grid" ng-click="vm.load(2)" active="vm.dlg.active == 2"></uib-tab>
</uib-tabset>
<ng-view></ng-view>
</div>
我設置了vm.dlg.active = 2,但第二個選項卡未激活。即使當我設置secont選項卡active =「true」,它不會被激活。角uib-tabset不激活選項卡
您正在使用哪個版本的'angular-ui'庫? – tanmay