angular ng-container code example

Example 1: ion-fab-button ionic angular

<ion-content>

  <!-- Fixed Floating Action Button that does not scroll with the content -->
  <ion-fab>
    <ion-fab-button>Button</ion-fab-button>
  </ion-fab>

  <!-- Default Floating Action Button that scrolls with the content.-->
  <ion-fab-button>Default</ion-fab-button>

  <!-- Mini -->
  <ion-fab-button size="small">Mini</ion-fab-button>

  <!-- Colors -->
  <ion-fab-button color="primary">Primary</ion-fab-button>
  <ion-fab-button color="secondary">Secondary</ion-fab-button>
  <ion-fab-button color="danger">Danger</ion-fab-button>
  <ion-fab-button color="light">Light</ion-fab-button>
  <ion-fab-button color="dark">Dark</ion-fab-button>

</ion-content>

Example 2: 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>