angular 8 get current route path code example
Example 1: angular get current route
this.router.url === '/login'
Example 2: angular get route url
this.router.events
.pipe(filter( event => event instanceof NavigationEnd))
.subscribe(event => {
this.router.navigate(['/tabs']);
}
});