]>
Commit | Line | Data |
---|---|---|
1 | import { NgModule } from '@angular/core' | |
2 | import { RouterModule, Routes } from '@angular/router' | |
3 | import { MetaGuard } from '@ngx-meta/core' | |
4 | import { VerifyAccountEmailComponent } from './verify-account-email/verify-account-email.component' | |
5 | import { VerifyAccountAskSendEmailComponent } from './verify-account-ask-send-email/verify-account-ask-send-email.component' | |
6 | ||
7 | const verifyAccountRoutes: Routes = [ | |
8 | { | |
9 | path: '', | |
10 | canActivateChild: [ MetaGuard ], | |
11 | children: [ | |
12 | { | |
13 | path: 'email', | |
14 | component: VerifyAccountEmailComponent, | |
15 | data: { | |
16 | meta: { | |
17 | title: 'Verify account email' | |
18 | } | |
19 | } | |
20 | }, | |
21 | { | |
22 | path: 'ask-send-email', | |
23 | component: VerifyAccountAskSendEmailComponent, | |
24 | data: { | |
25 | meta: { | |
26 | title: 'Verify account ask send email' | |
27 | } | |
28 | } | |
29 | } | |
30 | ] | |
31 | } | |
32 | ] | |
33 | ||
34 | @NgModule({ | |
35 | imports: [ RouterModule.forChild(verifyAccountRoutes) ], | |
36 | exports: [ RouterModule ] | |
37 | }) | |
38 | export class VerifyAccountRoutingModule {} |