title: Injecting a component into another component in angular
body: <p>I was taking a look into the source code of an angular package. In one of the component declarations I see another component (SwingStackComponent) being injected. </p>
  
  <pre><code>export class SwingCardComponent {
    constructor(
      private elmentRef: ElementRef,
      private swingStack: SwingStackComponent) {
    }
  }
  </code></pre>
  
  <p>How can a component be injected into another component? I think I am missing something here.</p>
  
  <p>Here is the link to the <a href="https://github.com/ksachdeva/angular2-swing/blob/master/src/swing-card-component.ts" rel="nofollow noreferrer">repo</a>.</p>