title: How to Select a Tab in angular-ui? (AngularJS)
body: <p>I want to select the last tab, any idea how to do that? Only the tabs inside the ng-repeat are available to select, I won't use a ng-repeat, how can I do it with no ng-repeat?</p>
  
  <p>Here is the working code: <a href="http://plnkr.co/edit/ZJNaAVDBrbr1JjooVMFj?p=preview" rel="noreferrer">http://plnkr.co/edit/ZJNaAVDBrbr1JjooVMFj?p=preview</a></p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html ng-app="ui.bootstrap.demo"&gt;
  
  &lt;head&gt;
    &lt;link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
    &lt;div ng-controller="TabsDemoCtrl"&gt;
      &lt;p&gt;Select a tab by setting active binding to true:&lt;/p&gt;
      &lt;p&gt;
        &lt;button type="button" class="btn btn-default btn-sm" ng-click="tabs[0].active = true"&gt;Select second tab&lt;/button&gt;
        &lt;button type="button" class="btn btn-default btn-sm" ng-click="tabs[1].active = true"&gt;Select third tab&lt;/button&gt;
        &lt;button type="button" class="btn btn-default btn-sm" ng-click="tabs[3].active = true"&gt;SELECT LAST TAB!!!&lt;/button&gt;
      &lt;/p&gt;
      &lt;p&gt;
        &lt;button type="button" class="btn btn-default btn-sm" ng-click="tabs[1].disabled = ! tabs[1].disabled"&gt;Enable / Disable third tab&lt;/button&gt;
      &lt;/p&gt;
      &lt;hr /&gt;
  
      &lt;uib-tabset&gt;
        &lt;uib-tab heading="Static title"&gt;Static content&lt;/uib-tab&gt;
        &lt;uib-tab ng-repeat="tab in tabs" heading="{{tab.title}}" active="tab.active" disable="tab.disabled"&gt;
          {{tab.content}}
        &lt;/uib-tab&gt;
        &lt;uib-tab heading="How to select this tab???"&gt;nico&lt;/uib-tab&gt;
      &lt;/uib-tabset&gt;
    &lt;/div&gt;
  
    &lt;script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.js"&gt;&lt;/script&gt;
    &lt;script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular-animate.js"&gt;&lt;/script&gt;
    &lt;script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.14.3.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
      angular.module('ui.bootstrap.demo', ['ngAnimate', 'ui.bootstrap']);
      angular.module('ui.bootstrap.demo').controller('TabsDemoCtrl', function($scope, $window) {
        $scope.tabs = [{
          title: 'Dynamic Title 1',
          content: 'Dynamic content 1'
        }, {
          title: 'Dynamic Title 2',
          content: 'Dynamic content 2',
          disabled: true
        }];
      });
    &lt;/script&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>