ng content and ng template code example
Example: ngTemplate
<div *ngIf='name && lastName; then thereAreParams else thereArentAnyParams'>
</div>
<ng-template #thereAreParams>
<h2>Name is : {{name}} </h2>
<h2>Last name is : {{lastName}} </h2>
</ng-template>
<ng-template #thereArentAnyParams>
<h2>There aren't any parameters</h2>
</ng-template>