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