В вашем компоненте
import { Routes, Router } from 'node_modules/@angular/router';
export class YourComponent implements OnInit{
constructor(public router: Router ) {
}
}
В HTML:
<ng-container *ngIf="router.url.includes('route01')">
<p>Item0</p>
</ng-container>