title: How to Input data to router-outlet
body: <p>I'm trying to send a <code>@Input</code> decorator trough a <code>&lt;router-outlet&gt;</code>, but can't seem to get the data in the child components, here's what I'm doing:</p>
  
  <pre><code>&lt;!--parent route calls the outlet --&gt;
  &lt;router-outlet [unit]="unit?.unit"&gt;&lt;/router-outlet&gt;
  </code></pre>
  
  <pre><code>// child route input decorator
  export class ClassRoomComponent OnInit {
  
    @Input() unit: string;
  
  </code></pre>
  
  <pre><code>// router module
  ...
  
    path: 'unidade/:unit',
      component: UnitComponent,
      children: [
       {
         path: 'turma/:classroom',
         component: ClassroomComponent,
       }
      ]
    },
  </code></pre>
  
  <p>cosole.log returns me <code>undefined</code> tought, why can't I send thata this way? </p>