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