import { Routes } from '@angular/router' ; import { LoaderBuilder } from '../../loader-builder' ; import { ExampleListViewerComponent } from '../example-list-viewer/example-list-viewer.component' ; import { HtmlViewerComponent } from '../html-viewer/html-viewer.component' ; export const componentViewerSubnavigation = [ { path : 'overview' , component : HtmlViewerComponent , data : { loaderBuilderInterceptor : ( loaderBuilder ) => loaderBuilder . fromModuleDocumentation ( ) , } , } , { path : 'api' , component : HtmlViewerComponent , data : { loaderBuilderInterceptor : ( loaderBuilder ) => loaderBuilder . fromApiDocumentation ( ) , } , } , { path : 'examples' , component : ExampleListViewerComponent , } , { path : '**' , redirectTo : 'overview' , } , ] ;