🟢 async-redirect
挑战 #60
此内容尚不支持你的语言。
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 indashboard.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.