What is a guard in angular?



What is a guard in angular?..

Answer / Rajendra Pratap Singh

A Guard in Angular is a service that intercepts navigation transitions and allows you to decide whether the transition should be allowed or blocked based on certain conditions, such as authentication. Guards can be used to ensure that only authenticated users have access to certain routes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Explain different filters provided by angularjs?

1 Answers  


What is the use of ng dblclick?

1 Answers  


What is mat card in angular?

1 Answers  


What is angular and why it is used?

1 Answers  


What is shadow dom? How is it helping angular 2 to perform better?

1 Answers  


What are the securities threats should we be aware of in angular 2 applications?

1 Answers  


Why do we need angular 2?

1 Answers  


What is the use of ngfor directive in angular?

1 Answers  


How to load external css style into angular 2?

1 Answers  


What is the difference between structural and attribute directives in angular?

1 Answers  


How performance improvements on the core in angular 8?

1 Answers  


What is internationalization and how to implement it in angular js?

1 Answers  


Categories