mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
chore: base layout
This commit is contained in:
parent
1fb884a633
commit
d82d691681
19 changed files with 195 additions and 44 deletions
50
src/app/@theme/theme.module.ts
Normal file
50
src/app/@theme/theme.module.ts
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
|
||||
import {
|
||||
NgaCardModule,
|
||||
NgaLayoutModule,
|
||||
NgaTabsetModule,
|
||||
NgaRouteTabsetModule,
|
||||
NgaSidebarModule,
|
||||
NgaMenuModule
|
||||
} from '@nga/theme';
|
||||
|
||||
import { RootLayoutComponent } from './layouts';
|
||||
|
||||
const BASE_MODULES = [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule
|
||||
];
|
||||
|
||||
const NGA_MODULES = [
|
||||
NgaCardModule,
|
||||
NgaLayoutModule,
|
||||
NgaTabsetModule,
|
||||
NgaRouteTabsetModule,
|
||||
NgaSidebarModule,
|
||||
NgaMenuModule
|
||||
];
|
||||
|
||||
const LAYOUT_COMPONENTS = [
|
||||
RootLayoutComponent
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
...BASE_MODULES,
|
||||
...NGA_MODULES,
|
||||
],
|
||||
exports: [
|
||||
...BASE_MODULES,
|
||||
...NGA_MODULES,
|
||||
...LAYOUT_COMPONENTS
|
||||
],
|
||||
declarations: [
|
||||
...LAYOUT_COMPONENTS
|
||||
]
|
||||
})
|
||||
export class ThemeModule {
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue