0

i am using angularjs v1.5.5 and ui-bootstrap-tpls-1.3.2.
i loading page the dynamic. i have 3 pages. i want to load last page by default

  $scope.tabs = [
{ title:'Page A', template: 'a.html',  content:'' , loaded : false},
{ title:'Page B', template: 'b.html',  content:'', loaded : false },
{ title:'Page C', template: 'c.html', content:'', loaded : false, active : true }

];

My Sample Code Here

1
  • It wil be more convenient if you provide code demo using SO code snippet feature instead of providing external link. Commented Apr 28, 2016 at 7:26

1 Answer 1

1

This was fairly simple.

By default the active tab is set to the first index in the tabset. The active attribute on the uib-tabset was changed to the required tab number.

<uib-tabset active="3">

Here is the modified plunkr

Source and Additional Read

If you want to read more about the attributes and properties of Angular UI tabs, here is a link to the documentation for tabs

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

2 Comments

It wil be more convenient if you provide code demo using SO code snippet feature instead of providing external link
@niyasc, it definitely is more convenient!However, the author had multiple pages in the demo, and considering it was already made, I edited the same.

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.