Within the HTML template of my component 'a', there is a button designed to redirect to another component:
<button nbButton status="info" class="left" [routerLink]="['/centers', center.id, 'prices']">PRICES</button>
Upon clicking this button, it triggers navigation to component 'b'.
Inside component 'a', there exists a private object variable holding a string value called currenciesAccepted
, specifically: myObject.currenciesAccepted
.
In order for component 'b' to access this string value, it must be passed when clicking the button to transition from component 'a' to component 'b'.