What are guards in angular 2?



What are guards in angular 2?..

Answer / Ravindra Kumar Ram

Guards in Angular (in version 2) function similarly to interceptors, but they intercept navigation transitions instead of HTTP requests. They allow you to decide whether the transition should be allowed or blocked based on certain conditions, such as authentication.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

How are the services injected to your application?

1 Answers  


List the differences between angular 2 components vs. Directives.

1 Answers  


What do you understand by isolated unit tests?

1 Answers  


What is afterviewinit?

1 Answers  


What is pure pipe?

1 Answers  


How do you use flexbox?

1 Answers  


What is key value pipe in angular 7?

1 Answers  


What is art compilation?

1 Answers  


Which other primeng components have you used with angular 2?

1 Answers  


What is routerstate?

1 Answers  


Explain about routing and why do we use it?

1 Answers  


What is urlsegment interface in angular 7?

1 Answers  


Categories