Saltar al contenido
angular challenges logo Angular Challenges

🟢 async-redirect

Reto #60

El contenido de esta página no cuenta con una traducción en tu idioma.

Creado por Thomas Laforge

Statement

In this challenge, you are working with an Angular application that currently uses a custom navigate method in dashboard.ts to handle route changes. With the introduction of the new redirectTo function in the Angular Router in v20, the goal is to modernize the codebase by removing the old navigate method and refactoring the application to use redirectTo for all redirection logic.

Your task is to:

  • Locate and delete the navigate method in dashboard.ts.
  • Refactor the application to use the new redirectTo function from the Angular Router wherever navigation is required.

This will help ensure the application leverages the latest Angular routing features and maintains best practices for navigation and redirection.

Contributors

Thanks to all the contributors who have helped make this documentation better!

  • tomalaforge