angular ng-content 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>