mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
30 lines
715 B
TypeScript
30 lines
715 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import { EditorsComponent } from './editors.component';
|
|
import { TinyMCEComponent } from './tiny-mce/tiny-mce.component';
|
|
import { CKEditorComponent } from './ckeditor.component';
|
|
|
|
const routes: Routes = [{
|
|
path: '',
|
|
component: EditorsComponent,
|
|
children: [{
|
|
path: 'tinymce',
|
|
component: TinyMCEComponent,
|
|
}, {
|
|
path: 'ckeditor',
|
|
component: CKEditorComponent,
|
|
}],
|
|
}];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class EditorsRoutingModule { }
|
|
|
|
export const routedComponents = [
|
|
EditorsComponent,
|
|
TinyMCEComponent,
|
|
CKEditorComponent,
|
|
];
|