I want to run a function whenever the user switches between the currently-selected and alternate routes.
I\'m building an Angular 8 app with a map which has driving direc