import { Routes } from '@angular/router' ; import { EditorComponent } from './components/editor/editor.component' ; import { BabylonComponent } from './components/babylon/babylon.component' ; export const routes = [ { path : '' , component : EditorComponent , children : [ { path : '' , pathMatch : 'full' , redirectTo : '' } , { path : '3d' , component : BabylonComponent } ] } ] ;