how to get the current route in angular code example Example: angular get current route this.router.url === '/login'