Is it possible to take a URL or path and find out which route it matches in the code-behind?
Ex: Router.matchRoute('my/route') returns information about the matching route, like:
{
path: 'my/route',
component: HeroListComponent,
data: { title: 'Heroes List' }
}
Basically, what I'm trying to do is to tell if the route of my current URL/path matches that of the one being navigated to.