angular router check if path is ** code example Example: angular get current route this.router.url === '/login'