UNPKG

470 BPlain TextView Raw
1import { NgModule } from '@angular/core';
2import { Routes, RouterModule } from '@angular/router';
3
4import { HelloArmorComponent } from './hello-armor/hello-armor.component';
5import { IdentityGuard } from '@armor/api';
6
7const routes: Routes = [
8 {
9 path: 'hello',
10 component: HelloArmorComponent,
11 canActivate: [IdentityGuard]
12 }
13];
14
15@NgModule({
16 imports: [RouterModule.forChild(routes)],
17 exports: [RouterModule]
18})
19export class MainModuleRoutingModule { }