Angular2 Router - Anyone know how to use canActivate in app.ts so that I can redirect to home page if not logged in : <p>Angular2 Router - Anyone know how to use canActivate in app.ts so that I can redirect to home page if not logged in</p>

<p>I'm using typescript and angular 2.</p>

<p><strong>Current attempt under my constructor in my app.ts file:</strong></p>

<pre><code>   canActivate(instruction) {           
               console.log("here - canActivate");
               console.log(instruction);

               this.router.navigate(['Home']);  
   }
</code></pre>

<p>It currently doesnt get hit.
Any idea why?</p>
