I have a route /main/item:id
which looks something like:
http://localhost:5000/main/item/-JJHkhfghsiu45ve
In my html I want to be able to use an *ngIf to show something if this is the route or not. I do not want to use router outlet for this.
The issue I am having might be regarding the param.
I am doing something like:
<div *ngIf="this.router.url !== '/main/item:id'">
But this does not work for me as it sees this as always false. Thanks