Ver Fonte

lazy load leave routes

tigger há 1 ano atrás
pai
commit
8fd1493921
3 ficheiros alterados com 4 adições e 4 exclusões
  1. 1 1
      src/app/app.component.ts
  2. 2 2
      src/app/app.routes.ts
  3. 1 1
      src/dependencies/fis

+ 1 - 1
src/app/app.component.ts

@@ -34,7 +34,7 @@ import { generateId } from 'angularlib/base.service';
   ]
 })
 export class AppComponent extends BaseComponent implements OnInit {
-  title = 'FIS App';
+  title = 'Financial Information System';
 
   /**current date */
   protected currentDate = new Date();

+ 2 - 2
src/app/app.routes.ts

@@ -6,7 +6,7 @@ import { LeaveComponent } from 'fis/leave/new/leave.component';
 
 export const routes: Routes = [
     { path: '', redirectTo: '/dashboard', pathMatch: 'full' },
-    { path:'dashboard', component: DashboardComponent, data: {title: 'FIS App'}},
+    { path:'dashboard', component: DashboardComponent, data: {title: 'Financial Information System'}},
     { path:'submission', component: SubmissionComponent, canActivate: [AuthGuard]},
-    { path:'leave', component: LeaveComponent, canActivate: [AuthGuard]}
+    { path:'leave', loadChildren: () => import('fis/leave/leave.module').then(m => m.LeaveModule)}
 ];

+ 1 - 1
src/dependencies/fis

@@ -1 +1 @@
-Subproject commit 3fcf881b514f2761e98da55f3d0343f68c3bb908
+Subproject commit 165bdf64f15fc8e9628cdb0ed519f2fc96ea17ef