Add and fix routes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-06-18 21:29:24 +02:00
parent f173d46c2e
commit 16318c70f7
2 changed files with 9 additions and 1 deletions

View File

@@ -5,5 +5,13 @@ export const routes: Routes = [
{
path: '',
component: EntriesComponent
},
{
path: 'create',
loadComponent: () => import('./edit-entry/edit-entry.component').then(m => m.EditEntryComponent)
},
{
path: 'edit/:id',
loadComponent: () => import('./edit-entry/edit-entry.component').then(m => m.EditEntryComponent)
}
];

View File

@@ -6,7 +6,7 @@
[options]="(rabbits$ | async)!" optionLabel="name" /> -->
</div>
<div>
<p-button label="Erstellen" routerLink="/weight-entries/create">
<p-button label="Erstellen" routerLink="/entries/create">
<!-- <ng-icon name="matAddSharp"></ng-icon> -->
</p-button>
</div>