title: How to access routerlink without parameters in Angular 2
body: <p>I struggle accessing a routerlink without its parameters in Angular 2. I need the routerlinks to check if I want to display a certain element in my navigation. I do this like this for normal routerlinks without parameters:</p>
  
  <pre><code>*ngIf="router.url === '/about'"
  </code></pre>
  
  <p>Now I have links with parameters like <code>/link/category</code> with category being a parameter and I would like to check if the routerlink is <code>/link/*</code>. How do I do this best?</p>