Coding task · Angular course · Module 3: Modules

Practice: Lazy Loading Route

Lazy loading loads a module only when the user navigates to a given path: the route gets a function that fetches the module file dynamically and takes the module class out of it (a single component is loaded through a different route field).

Task

Complete the routing configuration for lazy loading the SamuraiModule module.