Skip to main content

ACTIVITY 7: Angular Basic Routing

Published 1 min readMarkdown
ACTIVITY 7: Angular Basic Routing

First I created a folder and install angular in folder.

Open a any IDE open the folder in IDE and created a folder components inside the app folder. Created Homepage, Login, Signup, and Landing page component inside in components folder using terminal. code: ng generate component components/(name of components).

Create a app.module TS inside of the app folder.

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

create a Ngmodule for imports, declaration, providers, and bootstrap. Export class AppModule.

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

Output:

Repository: https://github.com/kaysie0919/AngularBasicRouting.git

Excellent 3 days late

More from this blog