<h2>Lista produktów</h2>
<ul>
  <li *ngFor="let product of products | sort" (click)="selectedProduct = product">
    {{product.name}}
  </li>
</ul>
<app-product-detail
  *ngIf="selectedProduct; else noProduct"
  [product]="selectedProduct"
  (bought)="onBuy()">
</app-product-detail>
<ng-template #noProduct>
  <p>Nie wybrano żadnego produktu!</p>
</ng-template>
<h3>Oferty</h3>
<ng-template appProductHost></ng-template>
