Angular – How to get current route

angularangular2-routing

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?

Best Answer

The new V3 router has a url property.

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