import { Routes } from '@angular/router' ; import { AuthGuardEcm } from '@alfresco/adf-core' ; import { HomeComponent } from './home/home.component' ; import { LoginComponent } from './login/login.component' ; import { DocumentsComponent } from './documents/documents.component' ; import { AppLayoutComponent } from './app-layout/app-layout.component' ; import { FileViewComponent } from './file-view/file-view.component' ; export const appRoutes = [ { path : 'files/:nodeId/view' , component : FileViewComponent , canActivate : [ AuthGuardEcm ] , outlet : 'overlay' } , { path : '' , component : AppLayoutComponent , children : [ { path : '' , component : HomeComponent } , { path : 'home' , component : HomeComponent } , { path : 'documents' , component : DocumentsComponent , canActivate : [ AuthGuardEcm ] } ] } , { path : 'login' , component : LoginComponent } ] ;