1
this.router.navigate(['/d/admin', this.uuid], {
  state: { username: this.user.username },
});

I'm using this to navigate to a different page in an Angular project, but the issue that I'm facing is that sometimes, I get the proper response from the backend, but it won't navigate to the page and does not print any error in the console.

What could be behind this?

5
  • please share the minimal reproducible code, if possible stackblitz where the issue happens Commented Nov 14, 2024 at 17:35
  • After Successfully Server response tyring to navigate using the above navigate feature...but not able to navigate Commented Dec 14, 2024 at 5:36
  • Are you asking about Angular or AngularJS? They are two different frameworks, but you tagged your question with both. Commented May 14 at 13:54
  • This is an Angular not an angular JS Commented May 30 at 12:43
  • If it does not navigate you have either a wrong route or a route guard preventing the navigation. I assume there is a guard, kindly include the guard in your question. Commented Jun 26 at 6:58

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.