diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index d5cd793..8b10b1f 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,3 +1,4 @@ +import { GroupModule } from './group/group.module'; import { AuthGuard } from './auth/auth.guard'; import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; @@ -5,6 +6,7 @@ import { Routes, RouterModule } from '@angular/router'; const routes: Routes = [ { path: '', redirectTo: 'user', pathMatch: 'full' }, + { path: 'group', loadChildren: () => import('./group/group.module').then(m => m.GroupModule), canActivate: [AuthGuard] }, { path: 'subject', loadChildren: () => import('./subject/subject.module').then(m => m.SubjectModule), canActivate: [AuthGuard] }, { path: 'user', loadChildren: () => import('./user/user.module').then(m => m.UserModule) } ]; diff --git a/src/app/group/components/group-edit/group-edit.component.html b/src/app/group/components/group-edit/group-edit.component.html index 235e195..b7b3cdb 100644 --- a/src/app/group/components/group-edit/group-edit.component.html +++ b/src/app/group/components/group-edit/group-edit.component.html @@ -1,7 +1,7 @@