Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 951 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 951 Bytes

Module 08 - Routing

Projects:

app-routing Introduction to the angular router

Introduction to routing

  • How to use the router directives by importing the router module
  • How to configure the router using provideRouter in app.config
  • We created a navigation bar using the RouterLink directive instead of href

Advanced routing

  • We saw how to pass parameters to a routed component using the ActivatedRoute service and the params property.
  • We saw how to use queryParams with the angular router.
  • We saw how to use RxJS to create a component that responds to parameters change
  • We saw how to create a guard that communicates with the authentication service to prevent entering a page without login in first
  • We saw how to make the guard and authentication service, play together to allow redirecting to the desired page after login

Modules in Angular