angular 11 get currnet route code example Example: angular get current route this.router.url === '/login'