Fixed smaller rounting bugs

This commit is contained in:
2026-02-02 08:56:51 +01:00
parent 3a13d62c9e
commit 01f66d4b8f
2 changed files with 7 additions and 6 deletions

View File

@@ -8,31 +8,31 @@ export class RouterConstants {
static readonly ABOUT = {
PATH: 'about',
LINK: ['/about'] as const,
LINK: '/about',
COMPONENT: AboutComponent
};
static readonly PROJECTS = {
PATH: 'projects',
LINK: ['/projects'] as const,
LINK: '/projects',
COMPONENT: ProjectsComponent
};
static readonly ALGORITHMS = {
PATH: 'algorithms',
LINK: ['/algorithms'] as const,
LINK: '/algorithms',
COMPONENT: AlgorithmsComponent
};
static readonly PATHFINDING = {
PATH: 'algorithms/pathfinding',
LINK: ['/algorithms', 'pathfinding'] as const,
LINK: '/algorithms/pathfinding',
COMPONENT: PathfindingComponent
};
static readonly IMPRINT = {
PATH: 'imprint',
LINK: ['/imprint'] as const,
LINK: '/imprint',
COMPONENT: ImprintComponent
};
}

View File

@@ -1,6 +1,7 @@
import { Injectable } from '@angular/core';
import { AlgorithmCategory } from '../models/algorithm-category';
import { Observable, of } from 'rxjs';
import {RouterConstants} from '../../../constants/RouterConstants';
@Injectable({
providedIn: 'root'
@@ -12,7 +13,7 @@ export class AlgorithmsService {
id: 'pathfinding',
title: 'ALGORITHM.PATHFINDING.TITLE',
description: 'ALGORITHM.PATHFINDING.DESCRIPTION',
routerLink: 'pathfinding'
routerLink: RouterConstants.PATHFINDING.LINK
}
];