Sep 18, 2024
index.html
and ensure base tag is added (href set to '/').app-routing.module.ts
is imported in app.module.ts
.ng-gc navbar
.app.component.html
to include navbar HTML tag.ng-gc login
for login component.ng-gc home
for home component.app-routing.module.ts
for route configuration./login
and /home
.nav
and anchor
tags to link routes.routerLink
and routerLinkActive
directives.
routerLink
: Holds path to page.routerLinkActive
: Specifies active CSS classes.router-outlet
directive to specify component display location in app.component.html
.