79674846

Date: 2025-06-22 02:18:34
Score: 1.5
Natty:
Report link

When using Ionic with Angular, you should use Angular's router.

This is detailed here: https://ionicframework.com/docs/angular/navigation

In my case, I was missing importing "RouterModule", so the links were not working.

import { RouterModule } from '@angular/router';

@Component({
    ...
    standalone: true,
    imports: [
        RouterModule,
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: below43