ng-content class code example
Example 1: ng content
<!-- for dynamic content in components -->
<ng-content></ng-content> <!-- in app-component template -->
<app-component>
<!-- insert html here -->
</app-component>
Example 2:
<ng-content></ng-content>