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.
export class SwingCardComponent {
constructor(
private elmentRef: ElementRef,
private swingStack: SwingStackComponent) {
}
}
How can a component be injected into another component? I think I am missing something here.
Here is the link to the repo.
– yurzui Nov 25 '17 at 13:47