resolvers for collection, community, item page

This commit is contained in:
lotte
2018-08-08 14:28:11 +02:00
parent 9a6390e011
commit 777ae2bc19
19 changed files with 180 additions and 122 deletions

View File

@@ -2,12 +2,23 @@ import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { CommunityPageComponent } from './community-page.component';
import { CommunityPageResolver } from './community-page.resolver';
@NgModule({
imports: [
RouterModule.forChild([
{ path: ':id', component: CommunityPageComponent, pathMatch: 'full' }
{
path: ':id',
component: CommunityPageComponent,
pathMatch: 'full',
resolve: {
community: CommunityPageResolver
}
}
])
],
providers: [
CommunityPageResolver,
]
})
export class CommunityPageRoutingModule {