title: Link a guard (canDeactivate) and a component without use RouterModule
body: <p>I call a component on a HTML page like this:</p>
  
  <pre><code>&lt;app-my-component&gt;&lt;/&lt;app-my-component&gt;
  </code></pre>
  
  <p>What I want it's link a guard <code>canDeactivate</code> with the component <code>my-component</code>. This component is never called by a route, so I don't add a path in <code>RouterModule</code>. I use it in 2 different pages.</p>
  
  <p>How to link the component and the guard without adding something like that:</p>
  
  <pre><code>{ path: 'my-component', component: MyComponent, canDeactivate: [CanDeactivateGuard] }
  </code></pre>