Yo hice esta solución que se actualice tanto en la sección de show cart como en pantalla generar
<updateProduct(){
const changes: UpdateProduct = {
title: 'Nuevo title',
description: 'Esta es un prueba',
}
const id = this.productChosen.id;
this.productsService.update(id,changes).subscribe(data =>{
const productIndex = this.products.findIndex(
item =>item.id ==this.productChosen.id
);
this.products[productIndex] = data;
this.productChosen = data;
})
}>
¿Quieres ver más aportes, preguntas y respuestas de la comunidad? Crea una cuenta o inicia sesión.