import { Routes } from '@angular/router'; import { ValamiComponent } from './valami/valami.component'; import { authGuard } from './shared/auth.guard'; export const routes: Routes = [ { path: 'valami', component: ValamiComponent, canActivate: [authGuard] }, ];