25 lines
		
	
	
		
			854 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			854 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { NgModule, Type } from '@angular/core';
 | |
| import { BasicModuleModule, 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: [
 | |
|     LayoutModule,
 | |
|     BasicModuleModule,
 | |
|     GlobalConfigModule.forRoot(),
 | |
|     RouteRoutingModule
 | |
|   ],
 | |
|   declarations: [...COMPONENTS, ...COMPONENTS_NOROUNT],
 | |
|   entryComponents: COMPONENTS_NOROUNT
 | |
| })
 | |
| export class RoutesModule {}
 |