Struggling with accessing a routerlink in Angular 2 without its parameters. The goal is to use the routerlinks to determine whether or not to display a specific element in the navigation. For normal routerlinks without parameters, I do it like this:
*ngIf="router.url === '/about'"
Now, however, I have links with parameters such as /link/category
, where "category" is a parameter. How can I efficiently check if the routerlink matches /link/*
?