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