title: Redirect to particular tab on a page from a different page
body: <p>I have 2 pages and in page 2 we have dynamically tabs created . In page 1 I have a button and when I click that button I open a form and fill the details and select under which tab i have to show this information (Usually we select  tabs in page 2) .</p>
  
  <p>Now once i click on submit button in page 1, I am able to navigate to page 2. But I also want to navigate to tab level. In short I have to navigate to page 2 (which ever tab i selected earlier).  How to do this in angular JS.  </p>
  
  <p>For naviagating I am using <code>window.location("/page2)"</code>.</p>
  
  <p>My code is  </p>
  
  <p><code>&lt;div ng-repeat="t in tdata"  class="time-tab-adspace " ng-class="{'tab-align-center':tdata.length==2}"&gt;
                          &lt;a class="nav-people-tab text-hover" data-toggle="tab" ng-class="{'nav-people-tab-hover in': 'ticket'+seltab=='ticket'+t.code}"  ng-click="selecttab(t)" data-target="#ticket{{$index}}"&gt;{{t.name}}
                          &lt;/a&gt;<br>
                      &lt;/div&gt;</code></p>
  
  <p>A piece of working snippet would be appreciated greatly.</p>
  
  <p>Thanks in advance</p>