<div *ngIf="product$ | async as product">
  <h2>Product Details</h2>
  <h3>{{product.name}}</h3>
  <span>{{product.price | currency:'EUR'}}</span>
  <button mat-raised-button color="primary" (click)="changePrice(product)">Zmień</button>
  <p>
     <button mat-button *ngIf="authService.isLoggedIn" (click)="buy(product)">Kup teraz</button>
     <button mat-raised-button color="primary" class="delete" (click)="remove(product)">Usuń</button>
  </p>
</div>

