title: Input variable in a router-outlet component
body: <p>I wanted to know if you guys now a way to have the @Input + ngOnChanges() combination or something doing the same inside a component in .</p>
  
  <p>Basically, I have set a <code>logged: boolean</code> variable in my AppComponent and in my template I have :</p>
  
  <pre><code>&lt;router-outlet&gt;&lt;/router-outlet&gt;
  &lt;login [logged]="logged"&gt;&lt;/login&gt;
  </code></pre>
  
  <p>What I want is to be able to <em>watch</em> that <code>logged</code> variable inside a component in the router-outlet so I make stuff here only when logged is as set as true.</p>
  
  <p>I've tried to put <code>&lt;router-outlet [logged]="logged"&gt;&lt;/router-outlet&gt;</code> but that doesn't work, and using a variable in a service seems not to fit the ngOnChanges() watch.</p>
  
  <p>Has anyone an idea ? Thanks !</p>