Skip to content

Commit

Permalink
Merge pull request #4 from CSCfi/CSCTTV-531
Browse files Browse the repository at this point in the history
pagination component
  • Loading branch information
saulipurhonen authored May 15, 2019
2 parents 9ff9fb8 + ebeafff commit 4e4fd2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,17 @@ const routes: Routes = [
component: ResultsComponent
},
{
path: 'single',
path: 'results/single',
component: SingleComponent
},
{
path: 'single/:id',
path: 'results/single/:id',
component: SingleComponent
}
},
{
path: 'results/:name/single/:id',
component: SingleComponent
},
];

@NgModule({
Expand Down
2 changes: 2 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { MatButtonModule } from '@angular/material/button';

import { CountUpModule } from 'countup.js-angular2';
import { SingleComponent } from './component/single/single.component';
import { PaginationComponent } from './component/pagination/pagination.component';

@NgModule({
declarations: [
Expand All @@ -48,6 +49,7 @@ import { SingleComponent } from './component/single/single.component';
SearchBarComponent,
ResultsComponent,
SingleComponent,
PaginationComponent,
],
imports: [
BrowserModule,
Expand Down

0 comments on commit 4e4fd2c

Please sign in to comment.