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