angular 8 get current route path in app component code example Example: angular get current route this.router.url === '/login'