In a scenario where you need to load some configuration data before determining if a route can be activated, which guard would be the most appropriate to use?

  • CanActivate
  • CanActivateChild
  • CanLoad
  • Resolve
In this scenario, the Resolve guard is the most appropriate. It allows you to fetch data or perform operations before activating a route. This can be useful for loading configuration data asynchronously before the route activation is determined.
Add your answer
Loading...

Leave a comment

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