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