mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-03-04 12:50:17 +01:00
feat(components): add a tree view page
This commit is contained in:
parent
cf23f972d1
commit
a3dede33cf
13 changed files with 109 additions and 8 deletions
25
src/app/pages/components/components-routing.module.ts
Normal file
25
src/app/pages/components/components-routing.module.ts
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { ComponentsComponent } from './components.component';
|
||||
import { TreeComponent } from './tree/tree.component';
|
||||
|
||||
const routes: Routes = [{
|
||||
path: '',
|
||||
component: ComponentsComponent,
|
||||
children: [{
|
||||
path: 'tree',
|
||||
component: TreeComponent,
|
||||
}],
|
||||
}];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class ComponentsRoutingModule { }
|
||||
|
||||
export const routedComponents = [
|
||||
ComponentsComponent,
|
||||
TreeComponent,
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue