The new V3 router has a url property.
this.router.url === '/login'
More Related Contents:
- Angular 2.0 router not working on reloading the browser
- How to detect a route change in Angular?
- How to determine previous page URL in Angular?
- How do I create a singleton service in Angular 2?
- How to go back last page
- Angular: Cannot find a differ supporting object ‘[object Object]’
- Angular2 multiple router-outlet in the same template
- ‘router-outlet’ is not a known element
- Angular2: Make route paths case insensitive
- Angular 2 Scroll to top on Route Change
- Angular 2 unit testing components with routerLink
- How to pass query parameters with a routerLink
- Angular 2 – How do I navigate to another route using this.router.parent.navigate(‘/about’)?
- Angular2 – Redirect to calling url after successful login
- Dynamic routing based on external data
- How to switch layouts in Angular2
- How do I detect user navigating back in Angular2?
- Using Resolve In Angular2 Routes
- Angular 2: getting RouteParams from parent component
- Angular2 router keep query string
- Angular 2 passing object via route params possible?
- Multiple canActivate guards all run when first fails
- Can’t reload/refresh active route
- How do I navigate to a sibling route?
- Angular2 routing / deep linking not working with Apache 404
- Pass parameter into route guard
- angular 2 azure deploy refresh error : The resource you are looking for has been removed, had its name changed, or is temporarily unavailable
- Angular2 Routing – keeping state of component when route changes [duplicate]
- Custom encoding for urls using Angular 2 Router (using a + sign in place of a space)
- Angular 2 different components with same route