项目初始化
This commit is contained in:
16
src/app/routes/routes.module.ts
Normal file
16
src/app/routes/routes.module.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { NgModule, Type } from '@angular/core';
|
||||
|
||||
import { SharedModule } from '@shared';
|
||||
// dashboard pages
|
||||
import { DashboardComponent } from './dashboard/dashboard.component';
|
||||
import { RouteRoutingModule } from './routes-routing.module';
|
||||
|
||||
const COMPONENTS: Type<void>[] = [DashboardComponent];
|
||||
const COMPONENTS_NOROUNT: Type<void>[] = [];
|
||||
|
||||
@NgModule({
|
||||
imports: [SharedModule, RouteRoutingModule],
|
||||
declarations: [...COMPONENTS, ...COMPONENTS_NOROUNT],
|
||||
entryComponents: COMPONENTS_NOROUNT,
|
||||
})
|
||||
export class RoutesModule {}
|
||||
Reference in New Issue
Block a user