how to check current route from url in angular code example Example: angular get current route this.router.url === '/login'