Advanced AngularLesson 35Free preview
Angular Router Advanced
This lesson is part of Angular · All levels
Summary
Advanced routers include lazy loading routes, child routes, guard, and resolver. With loadChildren, a module or set of components is only loaded when the route is visited. Guards like canActivate keep access routes based on conditions like user login status.
Key points
- LoadChildren do lazy loading per route
- Children allowing the mother layout with the child's route
- CanActivate refuses navigation if the conditions are not met
- Resolver provides data before active route loading
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.