Put in order · Angular course · Module 4: Routing

When guards run

Order the guards by when they run in the route lifecycle (from first to last):

Items to put in order

  • Resolve - fetching data before activation
  • CanDeactivate - before leaving a route
  • CanActivate - before entering a route

You can check the correct answer by solving this task in the CodeWorlds game.