Angular

Last Updated: 9/7/2023

Routing Introduction

  • RouterModule exposes a bunch of directives and services that we use to implement navigation in our application

Steps for implementing navigation

  1. Configure the routes
    • Each route determines what component is visible when the user navigates to certain url
    • A route is the mapping of the path to the component
  2. Add a router outlet
    • Router outlet is where angular will display the corresponding component when the given route becomes active
  3. Add links