mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 16:00:14 +01:00
refactor(app): refactor forRoot & menu import
This commit is contained in:
parent
d6cef06dcd
commit
be69ccc058
6 changed files with 170 additions and 111 deletions
|
|
@ -1,14 +1,9 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
|
||||
import { NgaMenuModule, NgaSidebarModule, NgaThemeModule } from '@akveo/nga-theme';
|
||||
|
||||
import { menuItems } from './pages-menu';
|
||||
|
||||
import { PagesComponent } from './pages.component';
|
||||
import { DashboardModule } from './dashboard/dashboard.module';
|
||||
import { PagesRoutingModule } from './pages-routing.module';
|
||||
import { ThemeModule } from '../@theme/theme.module';
|
||||
import { DataModule } from '../@core/data/data.module';
|
||||
|
||||
const PAGES_COMPONENTS = [
|
||||
PagesComponent,
|
||||
|
|
@ -16,13 +11,8 @@ const PAGES_COMPONENTS = [
|
|||
|
||||
@NgModule({
|
||||
imports: [
|
||||
// TODO: why here? review the modules structure
|
||||
NgaThemeModule.forRoot({ name: 'cosmic' }),
|
||||
NgaSidebarModule.forRoot(),
|
||||
NgaMenuModule.forRoot({ items: menuItems }),
|
||||
PagesRoutingModule,
|
||||
ThemeModule,
|
||||
DataModule.forRoot(),
|
||||
DashboardModule,
|
||||
],
|
||||
declarations: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue