I found this code for detecting the current route but it does not seem to work in Angular 7.
Here is the code:
app.component.ts
import { Routes } from '@angular/router';
...
constructor(private router: Routes) {}
app.component.html
<div *ngIf="router.url === '/someroute'">We are in someroute</div>
How can I check the route in the .html of a component in NG 7?