I did lazy loading config in my angular project. That is done, But there is a problem.
because of my lazy loading component is too big (700kb), time to load component from web server is too long (0.5s)
I have to show loading component when lazy loading.
But I can not find loading option in angular router module.
I try to find angular router type definition about lazy load.
const routes: Routes = [
{ path: '', component: RandingPageComponent },
{
path: 'teams/:name',
// Loading component cannot here
loadChildren: 'src/app/domain/domain.module#DomainModule'
},
{ path: '**', component: NotfoundComponent }
];