title: How to change active tab on button click in angularjs?
body: <p>I'm working on an angularjs based page.and I'm using tabset feature of bootstrap for a page.I could have used tabs() jquery function for horizontal tabs but I'm using vertical tabset for my page.its an outlook styled page.</p>
  
  <pre><code>&lt;div class="white-bg animated fadeIn"&gt;
  
  &lt;div class="row s-t-xs"&gt;
      &lt;div class="col-xs-10"&gt;
          &lt;div class="tabs-container"&gt;
  
                  &lt;tabset class="tabs-left"&gt;
                      &lt;tab id="tab1" heading="Job Preferences"&gt;
                      //TAB1 Content
                       &lt;div class="form-group"&gt;
                       &lt;div class="col-md-10 col-sm-offset-9"&gt;
            &lt;button class="btn btn-primary" type="submit" id="button1"&gt;Save &amp;amp; Next&lt;/button&gt;
                       &lt;/div&gt;
                       &lt;/div&gt;
                      &lt;/tab&gt;
  
                      &lt;tab id="tab2" heading="Experience / Project Summary" &gt;
                      //TAB2 Content
                      &lt;div class="form-group"&gt;
                      &lt;div class="col-md-10 col-sm-offset-9"&gt;
            &lt;button class="btn btn-primary" type="submit" id="button2"&gt;Save &amp;amp; Next&lt;/button&gt;
                      &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;/tab&gt;
  
  
                      &lt;tab id="tab3" heading="Educations / Certifications / Awards"&gt;
  
                     //TAB3 Content
                       &lt;div class="form-group"&gt;
                       &lt;div class="col-md-10 col-sm-offset-9"&gt;
            &lt;button class="btn btn-primary" type="submit" id="button3"&gt;Finish&lt;/button&gt;
                       &lt;/div&gt;
                       &lt;/div&gt;
  
                      &lt;/tab&gt;
                  &lt;/tabset&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>
  What I need is to change activate 2nd tab when i click the 'Save &amp; Next' button on first tab..and the 3rd tab to be activated when i click the "save &amp; next' button on 2nd tab. Is there any simple way i can make it done?</p>