title: How to call specified method from component by route path?
body: <p>I have the following route rule:</p>
  
  <pre><code>{ path: 'logout', component: LoginComponent, data: { title: extract('Login') } },
  </code></pre>
  
  <p>After click I need to call method logout in component <code>LoginComponent</code>.</p>
  
  <p>My link is:</p>
  
  <pre><code>&lt;a class="nav-link topRightLink" routerLink="/logout"&gt;Logout&lt;/a&gt; 
  </code></pre>