Initial Commit ...
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
{{! templates/module/module.ts.hbs }}
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { AuthGuard } from 'x-framework-identity-sdk';
|
||||
import { XCanDeactivateGuard } from 'x-framework-core';
|
||||
import { BaseRoutes } from 'src/app/config/page.config';
|
||||
import { ViewsModule } from 'src/app/views/views.module';
|
||||
|
||||
@NgModule({
|
||||
declarations: [],
|
||||
imports: [
|
||||
ViewsModule,
|
||||
RouterModule.forChild([
|
||||
{
|
||||
pathMatch: 'full',
|
||||
path: BaseRoutes.Default,
|
||||
redirectTo: '__NAME__',
|
||||
},
|
||||
{
|
||||
path: '__NAME__',
|
||||
canActivate: [AuthGuard],
|
||||
canDeactivate: [XCanDeactivateGuard],
|
||||
loadChildren: () =>
|
||||
import('./pages/__NAME__/__NAME__.module').then(
|
||||
(m) => m.__CLASS__PageModule
|
||||
),
|
||||
},
|
||||
]),
|
||||
],
|
||||
exports: [ViewsModule, RouterModule],
|
||||
})
|
||||
export class __CLASS__PageModule {}
|
||||
Reference in New Issue
Block a user