I am exploring a way to render an additional component on the current page instead of navigating to a new one. Here is my setup:
<button mat-button color="primary" [routerLink]="['/tripspath', trip.tripId]" style="cursor: pointer">View Route</button>
When clicked, this button navigates to the tripspath component and passes the tripId as a parameter:
var id = this.route.snapshot.params['id'];
However, I would like to avoid navigating to a new page and simply display the route box below the existing content on the same page.