-
Notifications
You must be signed in to change notification settings - Fork 261
/
bernie.routing.ts
37 lines (33 loc) · 947 Bytes
/
bernie.routing.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { Store } from '@ngrx/store';
import { BerniePage } from './bernie.page';
import { UserRouteAccessService } from '../../shared';
const routes: Routes = [
{
path: '', component: BerniePage,
data: {
authorities: ['ROLE_USER'],
pageTitle: 'greatBigExampleApplicationApp.bernie.home.title'
},
canActivate: [UserRouteAccessService]
},
{
path: ':claimId', component: BerniePage,
data: {
authorities: ['ROLE_USER'],
pageTitle: 'greatBigExampleApplicationApp.bernie.home.title'
},
canActivate: [UserRouteAccessService]
}
];
export const routedComponents = [BerniePage];
@NgModule({
imports: [
RouterModule.forChild(routes)
],
exports: [
RouterModule
]
})
export class BernieRouting { }