Implements More Automatic Routing Configuration

This commit is contained in:
2023-10-23 01:16:22 -03:00
parent a6279fed5a
commit e4e0dd495d
4 changed files with 19 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
import {
Component,
EventEmitter,
Input,
OnDestroy,
OnInit,
Output,
@@ -23,12 +24,8 @@ export class NavSliderComponent
{
userIcon = faUser;
navLink = [
{ page: 'Home', link: '/home' },
{ page: 'Work', link: '/home' },
{ page: 'Contact', link: '/home' },
{ page: 'About', link: '/home' },
];
@Input()
pages!: { name: string; route: string }[];
loggedUser!: User | null;