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