0

I'm trying to select active tab with uib-tabset in ui-bootstrap library. Seems like that setting active="1" or active="0" has no effect on the active tab. documentation is in here https://angular-ui.github.io/bootstrap/

Example:

<uib-tabset active="1">
    <uib-tab heading="tab1" index="0">
      ........
    </uib-tab>

    <uib-tab heading="tab2" index="1">
      ..........
    </uib-tab>
</uib-tabset>
4
  • 1
    Are you using the latest version of angular-ui-bootstrap? And also which files you have included from library? Commented Jan 7, 2018 at 8:47
  • Same example is working for me. plnkr.co/edit/02qexEXIaUpDxoar3fux?p=preview Commented Jan 7, 2018 at 8:53
  • Same here: plnkr.co/edit/vLIcTrdpxMGLIVJz8IaI?p=preview. Post a complete minimal example reproducing the issue. Commented Jan 7, 2018 at 8:54
  • As I commented, it was a version specific issue. Commented Jan 8, 2018 at 12:58

1 Answer 1

0

Thanks, I was able to fix it, I'm using an older version (1.x) so solution is:

<uib-tabset >
    <uib-tab heading="tab1" active="true">
      ........
    </uib-tab>

    <uib-tab heading="tab2" >
      ..........
    </uib-tab>
</uib-tabset>
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.