0
<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>

I want to switch tab from general to address tab after clicking Next Button

1
  • 1
    make use of ng-show or ng-hide. Commented Jul 14, 2016 at 7:11

2 Answers 2

2

Hi you can try using active true

js

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

HTMl

 <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>

for reference https://plnkr.co/edit/nRHFHDByvcQhiQTDkbFh?p=preview

Sign up to request clarification or add additional context in comments.

Comments

0

javascript

$scope.general = function () {
  $scope.active = 1;
}

html

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

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

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

</tabset>

reference: https://github.com/angular-ui/bootstrap/tree/master/src/tabs

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.