I have Ride
component, and in the end of the ride the Ride Summary
is shown.
The right summary has a button to "Start another ride" which redirects to the same component, Ride
.
[routerLink]="['Ride']"
Since the Ride
component is already the one i'm in, it's not refreshed and the Ride Summary
screen is keep showing.
How I can re-init the Ride
component when re-navigating to it? (use again the ngOnInit method)