<div class="row">
  <div class="container">
    <div class="alert alert-secondary" role="alert"
      *ngIf="componentRef !== undefined && componentRef?.hostView && message && message !== '' && noOfAlerts && alertNo"
      #alert>
      <span>
        {{ message }}
      </span>
      <i class="float-right fa fa-times" (click)="close()"></i>
    </div>
  </div>
</div>