title: how to redirect or call routerlink in ts file in angular2
body: <p>This is angular 2 routing code</p>
  
  <pre><code>     &lt;nav&gt;
           &lt;ul class="nav nav-tabs"&gt;
          &lt;li role="presentation" class="active"&gt;&lt;a routerLink="/dashboard" routerLinkActive="active"&gt;Step I&lt;/a&gt;&lt;/li&gt;
          &lt;li role="presentation"&gt; &lt;a routerLink="/faculty" routerLinkActive="active"&gt;Step II&lt;/a&gt;&lt;/li&gt;
          &lt;li role="presentation"&gt;&lt;a routerLink="/heroes" routerLinkActive="active"&gt;Step III&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;          
      &lt;/nav&gt;
      &lt;router-outlet&gt;&lt;/router-outlet&gt;
  </code></pre>
  
  <p>button click event</p>
  
  <pre><code>clickFunctionEvent(value: any) {
         this.dataService.setFacultyAnswer(JSON.stringify(value)).subscribe(
        tradeshows =&gt; {    
          this.data= tradeshows 
          //if data=success then redirect to next routerLink like "/faculty"                  
         },
        error =&gt; {console.error('QuestionList:\n\t ' + error);}
      );
  }
  </code></pre>
  
  <p>if <code>data=success</code> then redirect to next routerLink like <code>"/faculty"</code> </p>
  
  <p>so how to it in <code>.ts</code> file </p>
  
  <p>And <code>how to disable previous routerLink so not allow to go back</code></p>
  
  <p>thanks in advance</p>