import { NgModule } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; import { SharedModule } from '@shared/shared.module' ; import { UMeditorModule } from 'ngx-umeditor' ; import { PagesPageComponent } from './pages/pages' ; import { ArticlesPageComponent } from './articles/articles' ; import { CategoriesPageComponent } from './categories/categories' ; import { WidgetsPageComponent } from './widgets/widgets' ; import { CustomPageComponent } from './custom/custom' ; import { MediaPageComponent } from './media/media' ; const routes = [ { path : 'pages' , component : PagesPageComponent } , { path : 'articles' , component : ArticlesPageComponent } , { path : 'categories' , component : CategoriesPageComponent } , { path : 'widgets' , component : WidgetsPageComponent } , { path : 'media' , component : MediaPageComponent } , { path : 'custom/:id' , component : CustomPageComponent } , ] ; @ NgModule ( { imports : [ SharedModule , RouterModule . forChild ( routes ) , UMeditorModule , ] , declarations : [ PagesPageComponent , ArticlesPageComponent , CategoriesPageComponent , WidgetsPageComponent , CustomPageComponent , MediaPageComponent , ] , entryComponents : [ ] , exports : [ RouterModule ] } ) export class CmsModule { }