title: Route with array parameter in Angular 4
body: <p>I'm currently trying to solve problem with routing in Angular 4. I want the URL to contain array of parameters, so it looks like this: <code>/#/WF001A;operationIds=146469,146470</code>. This URL was generated by Angular using [routerLink]. Parameters needs to be accessible from component (that shouldn't be a problem, I guess).</p>
  
  <p>The problem is - I don't know how to create a route for it. What I tried:</p>
  
  <ul>
  <li><code>{path: 'WF001A/:operationIds', component: WF001AComponent}</code></li>
  <li><code>{path: 'WF001A/:operationIds[]', component: WF001AComponent}</code></li>
  <li><code>{path: 'WF001A:operationIds[]', component: WF001AComponent}</code></li>
  <li><code>{path: 'WF001A;:operationIds[]', component: WF001AComponent}</code></li>
  </ul>
  
  <p><strong>Edit:</strong>
  This is how the link is generated:</p>
  
  <p><code>&lt;a href="#" [routerLink]="['/WF001A', {operationIds:[146469, 146470]}]"&gt;test&lt;/a&gt;</code></p>
  
  <p><strong>Edit 2:</strong>
  Component class:</p>
  
  <pre><code>export class WF001AComponent implements OnInit {
      public title = 'WF001A';
  
      public constructor (private WF001AService: WF001AService, private route: ActivatedRoute) {}
  
      public ngOnInit(): void {
          this.route.paramMap.subscribe(params =&gt; {
              // This is never executed, for route is not recognized
              let myArray=params.getAll('operationIds');
              console.log(myArray);
          });
      }
  }
  </code></pre>