Skip to content

05_05 When use Guard and when use Redirect #4

@snibbo

Description

@snibbo

Hi Victor,

thank you so much for your lessons on Angular and JWT!

In your last video you use a Guard for the "contact" and "add" route, but for the "login" route you only use the router.redirect functions in the ngOnInit lifecycle hook.

Why do you use the router redirect at login, but not at the contact route? Or - vice versa - why do you not use a guard for the login route?

Thanks in advanced!
Florian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions