What is canactivate in angular?



What is canactivate in angular?..

Answer / Anupam Sharma

CanActivate is an Angular guard interface responsible for determining whether a route should be activated or not. It's often used to protect routes from unauthorized access.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is the difference between structural directive and attribute directive in angular 7?

1 Answers  


What is routing and navigation in angular?

1 Answers  


Why we need angular services?

1 Answers  


How to set authorization headers in get/post/put requests in angular?

1 Answers  


Distinguish between angularjs and javascript expressions.

1 Answers  


What is a controller's job?

1 Answers  


What is angular expression? How do you differentiate between angular expressions and javascript expressions?

1 Answers  


Distinguish between factory, service & provider?

1 Answers  


How does aot compiler work?

1 Answers  


Explain directive scopes in angularjs?

1 Answers  


How an object or function can get a hold of its dependencies?

0 Answers  


What is an eventemitter?

1 Answers  


Categories