How can you ensure that a lazily-loaded module is only downloaded when a specific condition is met?

  • It's not possible
  • Use canActivate guard
  • Use loadChildren in the route configuration
  • Use resolver for data preloading
To ensure that a lazily-loaded module is downloaded only when a specific condition is met, you can use the loadChildren property in the route configuration.
Add your answer
Loading...

Leave a comment

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