Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
Is available {{product.isAvailable}}
</div>
<button [disabled]="!product.isAvailable" (click)="onBuy()">Buy</button>
<!-- А как пользователь задаст количество необходимого товара? -->
<button [disabled]="!product.isAvailable" (click)="onBuy(3)">Buy several</button>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class ProductListComponentComponent implements OnInit {

products: ProductModel[];
constructor(
public productsServiceService: ProductsServiceService,
public productsServiceService: ProductsServiceService, // <-- дублируется суффикс Service
public cartService: CartService
) { }

Expand Down