跳转到内容
angular challenges logo Angular Challenges

🟢 async-redirect

挑战 #60

此内容尚不支持你的语言。

创建者 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.

贡献者

感谢所有帮助本文档变得更好的贡献者!

  • tomalaforge