Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/carrito.ts

Created Jun 11, 2020
Embed
What would you like to do?
constructor(private carritoService: CarritoService, private dataSharingService: DataSharingService) {
// Comunicación entre componentes
this.dataSharingService.currentMessage.subscribe(mensaje => {
if (mensaje == "car_updated") {
this.refrescarCarrito();
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment