import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { HttpClientModule } from '@angular/common/http'; import { AppComponent } from './app.component'; import { RouterModule, Routes } from '@angular/router'; import { SharedModule } from './shared/shared.module'; const routes: Routes = [ { path: 'video', loadChildren: () => import('./feature/video/video.module').then( m => m.VideoModule ) }, { path: '', redirectTo: 'video/list', pathMatch: 'full' } ]; @NgModule({ declarations: [ AppComponent, ], imports: [ BrowserModule, HttpClientModule, RouterModule.forRoot(routes), SharedModule, ], providers: [], bootstrap: [AppComponent] }) export class AppModule { }