All files / src/app/pages/search search-page.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 181x                                  
<ng-container *ngIf="searchTerm$ | async as searchTerm">
  <!-- search result with products -->
  <ng-container *ngIf="(numberOfItems$ | async) || (filterParams$ | async); else noResult">
    <ish-search-result
      [searchTerm]="searchTerm"
      [totalItems]="numberOfItems$ | async"
      [deviceType]="deviceType$ | async"
    />
  </ng-container>
 
  <!-- empty search result -->
  <ng-template #noResult>
    <ish-search-no-result *ngIf="(searchLoading$ | async) === false" [searchTerm]="searchTerm" />
  </ng-template>
 
  <ish-loading *ngIf="searchLoading$ | async" />
</ng-container>