angular get current route

JavaScript
this.router.url === '/login'
Source

Also in JavaScript: