0

i am facing an issue with angular bootstrap ui static tabs default selection.

I have around seven tab like this in a model popup. I want to set default tab based on value. i have done something like this

<uib-tab select="getCurrentTab('basic')" active="active.two"  heading="Basic">

in script

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

Issue is it always selects the first tab,irrespective of the scope field

1
  • Sorry, with the above code it works Commented Dec 2, 2015 at 17:12

1 Answer 1

0

ng-class="{active: active.two}"

Set the active class using ng-class This may help you.

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

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.