ACTIVITY 7: Angular Basic Routing

Step 1: I created a folder and install angular in folder.

Step 2: Create your components Homepage, Login, Signup, and Landing page component inside in components folder using terminal. code: ng generate component components/(name of components).

Step 3 : Create a app.module TS inside of the app folder.

n app.module create a route const to provide routing in components

Step 4: Create a Ngmodule for imports, declaration, providers, and bootstrap. Export class AppModule.

Step 5: In app.component.html create a html code to provide the link of the components

Output:




Git Hub Repo : https://github.com/ChristineMaitom/Angular-Basic-Routing