diff --git a/FE/angular/src/app/app-routing.module.ts b/FE/angular/src/app/app-routing.module.ts index ff15850..9dbd846 100644 --- a/FE/angular/src/app/app-routing.module.ts +++ b/FE/angular/src/app/app-routing.module.ts @@ -1,17 +1,12 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { MovieComponent } from './components/movie/movie.component'; -import { MoviesComponent } from './components/movies/movies.component'; const routes: Routes = [ { path: '', - component: MoviesComponent + loadChildren: () => import('./components/movies/movies.module').then((m) => m.MoviesModule) }, - { - path: 'movie/:id', - component: MovieComponent - } + { path: 'movie/:id', loadChildren: () => import('./components/movie/movie.module').then((m) => m.MovieModule) } ]; @NgModule({ diff --git a/FE/angular/src/app/app.component.html b/FE/angular/src/app/app.component.html index c605841..3e12256 100644 --- a/FE/angular/src/app/app.component.html +++ b/FE/angular/src/app/app.component.html @@ -1,6 +1,5 @@