title: How to pass 2 parameters from routerLink?
body: <p>I am trying to pass 2 parameters through the routerLink, to my component and then to my service to get the data.</p>
  
  <p>The Html looks like this:-</p>
  
  <pre><code>  &lt;h3&gt;&lt;a routerLink="['/repository', {{res.owner.login}}, {{res.name}} ]"&gt;{{res.owner.login}}&lt;/a&gt;&lt;/h3&gt;
  </code></pre>
  
  <p>and in my component I have the following:-</p>
  
  <pre><code>ngOnInit() {
  this._route.params
  .map(params =&gt; params['userName,repoName'])
  .subscribe((params) =&gt; {
    this.userName = params['userName']; this.repoName = params['repoName']
    console.log('params = ' + params)
    this._githubService.getRepo(params)
      .subscribe(repository =&gt; {
        this.repository = repository;
      })
    })
  }
  </code></pre>
  
  <p>And in my service I have the following code:-</p>
  
  <pre><code>getRepo(params: any){
     let headers = new Headers();
     headers.append('Content-type', 'application/json');
     return this._http.get("https://api.github.com/repos/"+ params.userName +"/" + params.repoName+ "/commits&amp;sort=stars&amp;order=desc&amp;page=1", { headers: headers, withCredentials: false })
        .map(this.extractRepo)
        .catch(error =&gt; this.handleError(error, this.router));
  
  }
  </code></pre>
  
  <p>Router configuration is as follows:-</p>
  
  <pre><code>   import {ModuleWithProviders} from '@angular/core';
     import {Routes, RouterModule} from '@angular/router';
  
     import { HomeComponent } from '../app/components/home/home.component';
     import { RepositoryComponent } from 
      '../app/components/repository/repository.component';
  
     const appRoutes: Routes = [
         {path: '', component: HomeComponent, pathMatch: 'full'},
         {path: 'repository', component: RepositoryComponent}
     ];
  
  export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);   
  </code></pre>
  
  <p>However when I run the application, the link is being displayed as follows:-</p>
  
  <pre><code>Error: Cannot match any routes. URL Segment: '%5B'/repository'%2C%20tetris%2C%20react-tetris%20%5D'
  </code></pre>
  
  <p>How can I format the routerLink and get the parameters to send to my service?</p>
  
  <p>Thanks for your help and time!</p>