use of ng content in angular 8 code example
Example: ng content
<!-- for dynamic content in components -->
<ng-content></ng-content> <!-- in app-component template -->
<app-component>
<!-- insert html here -->
</app-component>
<!-- for dynamic content in components -->
<ng-content></ng-content> <!-- in app-component template -->
<app-component>
<!-- insert html here -->
</app-component>