From e6c974a0b3f7cf3b2086043e5c59702acd9f17b3 Mon Sep 17 00:00:00 2001 From: "Wataru.Kasahara" Date: Mon, 12 Feb 2024 13:14:05 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20feature=20module=20=E3=82=92?= =?UTF-8?q?=E5=89=8A=E9=99=A4=E3=81=97=E3=81=A6=E7=9B=B4=E6=8E=A5=20compon?= =?UTF-8?q?ent=20=E3=82=92=E3=83=AB=E3=83=BC=E3=83=86=E3=82=A3=E3=83=B3?= =?UTF-8?q?=E3=82=B0=E3=81=AB=E6=8C=87=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/app.routes.ts | 4 +++- src/app/features/top/top-routing.module.ts | 11 ----------- src/app/features/top/top.module.ts | 11 ----------- 3 files changed, 3 insertions(+), 23 deletions(-) delete mode 100644 src/app/features/top/top-routing.module.ts delete mode 100644 src/app/features/top/top.module.ts diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 41e42128..6f068ea4 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,7 +1,9 @@ import { Routes } from '@angular/router'; +import { TopPageComponent } from './features/top/pages/top/top.component'; export const routes: Routes = [ - { path: '', loadChildren: () => import('./features/top/top.module').then((m) => m.TopModule) }, + // { path: '', loadChildren: () => import('./features/top/top.module').then((m) => m.TopModule) }, + { path: '', component: TopPageComponent }, { path: 'blogs', loadChildren: () => import('./features/blog/blog.module').then((m) => m.BlogModule) }, { path: 'activities', loadChildren: () => import('./features/activity/activity.module').then((m) => m.ActivityModule) }, { path: 'labs', loadChildren: () => import('./features/lab/lab.module').then((m) => m.LabModule) }, diff --git a/src/app/features/top/top-routing.module.ts b/src/app/features/top/top-routing.module.ts deleted file mode 100644 index a7ee6a58..00000000 --- a/src/app/features/top/top-routing.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { TopPageComponent } from './pages/top/top.component'; - -const routes: Routes = [{ path: '', component: TopPageComponent, pathMatch: 'full' }]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule], -}) -export class TopRoutingModule {} diff --git a/src/app/features/top/top.module.ts b/src/app/features/top/top.module.ts deleted file mode 100644 index 3ba58a1f..00000000 --- a/src/app/features/top/top.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { NgModule } from '@angular/core'; - -import { TopComponent } from './containers/top/top.component'; -import { TopPageComponent } from './pages/top/top.component'; -import { TopRoutingModule } from './top-routing.module'; - -@NgModule({ - imports: [CommonModule, TopRoutingModule, TopPageComponent, TopComponent], -}) -export class TopModule {}