import { NgModule } from '@angular/core'; import { Component } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { BlockComponent } from './addon/addon.component'; // Important for single spa @Component({ selector: 'app-empty-route', template: '
', }) export class EmptyRouteComponent {} const routes: Routes = [ { path: `settings/:addon_uuid`, children: [ { path: ':editor', component: BlockComponent // TODO: solve routing // path: '**', // loadChildren: () => import('./addon/addon.module').then(m => m.BlockModule) } ] }, { path: '**', component: EmptyRouteComponent } ]; @NgModule({ imports: [RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' })], exports: [RouterModule] }) export class AppRoutingModule { }