Currently, I am facing an issue with a routerlink that includes a parameter:
http://localhost:4200/item/1
I am trying to figure out how to implement an *ngIf statement with a parameter.... Here is what I have attempted so far:
<div *ngIf="router.url === '/item/:item_id'">
</div>
The challenge here is that the component where I am using this *ngIf is actually a header component and not directly related to the itemComponent.