<tabset class="overflowhidden marginbottom0" tabset-name="clientTabset">

<tab heading="General" title="general">
<p>Hello</p>
<button  ng-click="general()"  class="btn btn-primary"  has-permission='CREATE_CLIENT'>Next</button>
</tab>

<tab heading="Address" title="address" >
<p>hello world </p>
</tab>

</tabset>


我想在单击“下一步”按钮后将选项卡从常规选项卡切换到地址选项卡

最佳答案

嗨,您可以尝试使用主动式True

js

$scope.active = {
    one: false,
    two: true
  };


HTM1

 <tabset>
    <tab heading="General" title="general">
        One
         <button  ng-click="general()"  class="btn btn-primary"  has-permission='CREATE_CLIENT'>Next</button>
      </tab>
      <tab heading="Address" title="address"  active="active.two">Two</tab>
    </tabset>


供参考https://plnkr.co/edit/nRHFHDByvcQhiQTDkbFh?p=preview

10-08 02:13