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 {}