Optimize structure
This commit is contained in:
@ -1,16 +1,24 @@
|
||||
import { NgModule, Type } from '@angular/core';
|
||||
import { SharedModule } from '@shared';
|
||||
import { SharedModule, STWidgetModule } from '@shared';
|
||||
|
||||
// dashboard pages
|
||||
import { DashboardComponent } from './dashboard/dashboard.component';
|
||||
import { RouteRoutingModule } from './routes-routing.module';
|
||||
import { BasicTableComponent } from './commom/components/basic-table/basic-table.component';
|
||||
import { LayoutModule } from '../layout/layout.module';
|
||||
import { GlobalConfigModule } from '../global-config.module';
|
||||
|
||||
const COMPONENTS = [DashboardComponent, BasicTableComponent];
|
||||
const COMPONENTS_NOROUNT: Array<Type<void>> = [];
|
||||
|
||||
@NgModule({
|
||||
imports: [SharedModule, RouteRoutingModule],
|
||||
imports: [
|
||||
LayoutModule,
|
||||
SharedModule,
|
||||
GlobalConfigModule.forRoot(),
|
||||
STWidgetModule,
|
||||
RouteRoutingModule
|
||||
],
|
||||
declarations: [...COMPONENTS, ...COMPONENTS_NOROUNT],
|
||||
entryComponents: COMPONENTS_NOROUNT
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user