In Angular's routing, which guard determines whether a module can be lazily loaded?

  • CanActivate
  • CanDeactivate
  • CanLoad
  • Resolve
In Angular's routing, the CanLoad guard determines whether a module can be lazily loaded. This guard is used to protect routes that are loaded on-demand, typically through lazy loading, and it checks conditions before allowing the module to load. CanActivate is used to determine if a route can be activated, but it doesn't control lazy loading.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *