How to get current route

pdeva picture pdeva · Jan 4, 2016 · Viewed 635k times · Source

The current docs only talk about getting route params, not the actual route segments.

For example, if i want to find the parent of current route, how is that possible?


Victor96 picture Victor96 · Jun 19, 2016

The new V3 router has a url property.

this.router.url === '/login'