Angular Routerlink is not working and I did everything right

Kuba Piłat
  <nav>
    <a routerlink="/students"><button mat-stroked-button class="button"><mat-icon class="icon">face</mat-icon><br><br><br>students</button></a>
  </nav>
const routes: Routes = [
  {path: 'students', component: StudentsComponent},
];

angular routerlink don't work. Imported RoutingComponent too app.module etc.

Michael D

I wouldn't say you did "everything" right. The routerLink directive is case-sensitive.

routerLink != routerlink

It must be

<nav>
  <a routerLink="/students">
    <button mat-stroked-button class="button">
      <mat-icon class="icon">face</mat-icon><br><br><br>
      students
    </button>
  </a>
</nav>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

routerLink not working in Angular 6

RouterLink is not working in Angular 6

routerLink is not working in angular 2

i want to display list of an array from react but it's not showing when i think i did everything right?

Angular routerlink not working with lazyloading modules

I want to pass a an object to a child component. I did everything and nothing works. (ANGULAR)

Angular mat-list-item routerLink not working

Angular routerLink directive in modal component not working as expected

I am using chart js to draw a chart. I did everything right but i don't know why the x axis and y axis label is not comming in chart. code below

I did it by the tutorial and it's not working

Java Recursion - Did I do this right?

Did I just delete everything with find -exec mv?

Req.body is empty in express even i did everything

"Expecting ',' delimiter". Everything I've tried is not working

How did I get a NullPointerException? Working with JApplet

View binding not working, what did I miss?

I'm doing everything right but still getting error

Why This Cycle Doesn't Work If I Done Everything Right

Did I applied bootstrap 3 grid system right?

RouterLink not working in child components

I deleted my desktop and everything froze. What did I do?

Display button doesn't show anything even if I did everything correctly (I think)

@keyframes not working, I have tried everything i can think of

Why did this command delete everything?

Angular routerLink w/o "[]"

Incorrect routing in routerLink Angular

Angular RouterLink Issue

Angular routerLink on *ngFor checkboxes

Customize routerLink in Angular 5