Created
June 11, 2020 03:09
-
-
Save parzibyte/e08ef5559f22b23d8293d838500ed935 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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