xxxxxxxxxx
<div *ngIf="ngIf-example" class="display-hello">Hello World!</div>
<!--after conversion-->
<ng-template [ngIf]="ngIf-example">
<div class="desplay-hello">Hello world!</div>
</ng-template>
xxxxxxxxxx
<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>