Hayk Aghabekyan
Hayk Aghabekyan

Reputation: 1087

Angular 2 router navigation doesn't work

Please check onSignIn() method in the end of the file

https://github.com/haykaghabekyan/angular2/blob/master/client/app/signin/signin.component.ts

The problem is that it is not navigating to the url I need after the user is being successfully authenticated.

I think it can happen because of the Observable object.. Any thoughts?

Thanks

Upvotes: 0

Views: 230

Answers (1)

Armen Markosyan
Armen Markosyan

Reputation: 46

It actually navigates you, but AuthGuard that you've use in your route navigates back to sign-in.

Upvotes: 1

Related Questions