0

What’s the difference between CanActivate and CanLoad guards in Angular routing?

author
subina kallyani
medium
0
12

Answer
  • CanActivate → decides if a route can be activated after the module is loaded.
  • CanLoad → prevents the lazy-loaded module from even being downloaded if the guard fails.

Click to Reveal Answer

Tap anywhere to see the solution

Revealed

Comments0
    What’s the difference between CanActivate and CanLoad guards in Angular routing? - routing & guards | EBAT