Nisha Patel
Problem
I am trying to call up 3 different tabs using angular-routing. I use a mat-toolbar for the display. I followed the steps from a youtube tutorial >https://www.youtube.com/watch?v=ADEZTrIxj1k&ab_channel=TechnophileProgBox .
While I was programming, the navigation worked with a component. Now it no longer works with any of them.
I have searched for a solution on Stackoverflow and found nothing, can you please help me?
app.component.html
navbar.component.html
app-routing.module.ts
app.module.ts
Solution
It seems like you have a typo: router-link should be routerLink
Suggested blogs:
>How to make the dropdown for this button ADA accessible in Angular?
>How to update properties value with event in template Angular?
>Unit Test Angular Standalone Component, Overriding Provider not used
>How to Import componet's own module using Angular?
>Why component does not display variable of another component in Angular?