What is a guard in Angular 8?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please Disable the AdBlocker to Continue to the site.
A guard in Angular 8 is used to protect routes in a single-page application. Guards can be used to check if a user is authorized to access a particular route or to redirect users to a login page if they are not authenticated.