Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 1x 1x | import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { WorkspacesComponent } from './workspaces/workspaces.component'; import { UsersComponent } from './users/users.component'; import { SuperadminComponent } from './superadmin.component'; import { SettingsComponent } from './settings/settings.component'; const routes: Routes = [ { path: '', component: SuperadminComponent, children: [ { path: '', redirectTo: 'users', pathMatch: 'full' }, { path: 'users', component: UsersComponent }, { path: 'workspaces', component: WorkspacesComponent }, { path: 'settings', component: SettingsComponent }, { path: '**', component: UsersComponent } ] } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class SuperadminRoutingModule { } |