title: Angular UI - set active tab programmatically
body: <p>I using AngularUI with this code:</p>
  
  <pre><code>&lt;uib-tabset type="pills"&gt;
      &lt;uib-tab heading="Tab 1"&gt;Tab 1 content&lt;/uib-tab&gt;
      &lt;uib-tab heading="Tab 2"&gt;Tab 2 content&lt;/uib-tab&gt;
  &lt;/uib-tabset&gt;
  </code></pre>
  
  <p>I want to programmatically change the current active tag from my angular-controller code. For example, select tab "2" to be the active. </p>
  
  <p>How this can be done?</p>