1

When using AngularJS and bootstrap javascript tabs, I ran into an issue of where angularjs route would pickup href clicks. In a result, instead of showing a tab, route redirects to location of where tab button is lining to. In short, bootstrap javascript tab is not suppressing default action for tab clicks.

2
  • 4
    If you aren't already using AngularJS directives for your Bootstrap components, I'd start there. angular-ui.github.io/bootstrap Commented Feb 20, 2015 at 22:29
  • As mentioned above use the angularized versions of thee bootstrap components from here - angular-ui.github.io/bootstrap Commented Feb 21, 2015 at 5:04

1 Answer 1

4

Just add `target="_self"

See example:

<a href="#tab01"  target="_self" >
    <div class="tab-pane fade in active" id="tab01">show tab1</div>
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.