title: Angular2 - *ngIf route is a certain param
body: <p>I have a route /main/item:id</p>
  
  <p>which looks something like:</p>
  
  <pre><code>http://localhost:5000/main/item/-JJHkhfghsiu45ve
  </code></pre>
  
  <p>In my html I want to be able to use an *ngIf to show something if this is the route or not. I do not want to use router outlet for this.</p>
  
  <p>The issue I am having might be regarding the param.</p>
  
  <p>I am doing something like:</p>
  
  <pre><code> &lt;div *ngIf="this.router.url !== '/main/item:id'"&gt;
  </code></pre>
  
  <p>But this does not work for me as it sees this as always false.
  Thanks</p>