1. 20
    Prevent a route from being lazy loaded based on user permissions with the Angular router
    2m 10s

Prevent a route from being lazy loaded based on user permissions with the Angular router

Share this video with your friends

Send Tweet

What if we have a lazy loaded application module behind some route and we want to prevent an unauthorized user from accessing it? We can directly implement a CanLoad route guard to even prevent the lazy loaded module from being downloaded. That’s what we are going to do in this lesson.