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