Projection
Components by default support projection. You can use the ngContent
directive to place the projected content in your template.
import {Component, Input} from '@angular/core';
@Component({
selector: 'child',
template: `
<h4>Child Component</h4>
<ng-content></ng-content>
`
})
class Child {}