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