{{ poll.description }}
- -diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 1694a968..762e0817 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -2,6 +2,7 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { HomeComponent } from './core/components/home/home.component'; +import { PollService } from './core/services/poll.service'; import { PageNotFoundComponent } from './shared/components/page-not-found/page-not-found.component'; const routes: Routes = [ @@ -10,20 +11,24 @@ const routes: Routes = [ path: 'administration', loadChildren: () => import('./features/administration/administration.module').then((m) => m.AdministrationModule), + resolve: { poll: PollService }, }, { path: 'consultation', loadChildren: () => import('./features/consultation/consultation.module').then((m) => m.ConsultationModule), + resolve: { poll: PollService }, }, { path: 'participation', loadChildren: () => import('./features/participation/participation.module').then((m) => m.ParticipationModule), + resolve: { poll: PollService }, }, { path: 'oldstuff', loadChildren: () => import('./features/old-stuff/old-stuff.module').then((m) => m.OldStuffModule), }, { path: '**', component: PageNotFoundComponent }, + { path: 'page-not-found', component: PageNotFoundComponent }, ]; @NgModule({ diff --git a/src/app/core/components/sibebar/navigation/navigation.component.html b/src/app/core/components/sibebar/navigation/navigation.component.html index e09ae2c6..d07d1d9e 100644 --- a/src/app/core/components/sibebar/navigation/navigation.component.html +++ b/src/app/core/components/sibebar/navigation/navigation.component.html @@ -2,6 +2,9 @@
-{{ poll.question }}
- -{{ poll.description }}
- -{{ poll.question }}
+ +{{ poll.description }}
+ - +