You can pass in a route from anywhere. However, if you want Angular to apply the routerLinkActive
when that route gets activated, you need to ensure that you pass in an absolute path (starts with a /
) to routerLink
.
Tailwind should work file with routerLinkActive