5. ProductCardComponent (Tarjetas + Botón Eliminar)

5.2. Recibir un producto con @Input()

Este componente no carga datos.

Solo recibe un producto mediante @Input(), siguiendo el patrón padre → hijo

Abre product-card.component.ts  y déjalo así:

import { Component, Input } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Product } from '../../services/product.service';

@Component({
  selector: 'app-product-card',
  standalone: true,
  imports: [CommonModule],
  templateUrl: './product-card.component.html'
})
export class ProductCardComponent {

  @Input() product!: Product; // Recibe un producto desde el padre

}