UNPKG

@armor/create-armor-ui

Version:

A cli tool for generating Armor UI apps.

20 lines (16 loc) 470 B
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { HelloArmorComponent } from './hello-armor/hello-armor.component'; import { IdentityGuard } from '@armor/api'; const routes: Routes = [ { path: 'hello', component: HelloArmorComponent, canActivate: [IdentityGuard] } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class MainModuleRoutingModule { }