When I click on the menu item it takes too much time to load
This is my app-routing-modules.ts
const routes: Routes = [
{
path: '',
children: [
{
path: 'login',
loadChildren: () => import('./pages/login/login.module').then(m => m.LoginModule)
},
{
path: 'products',
loadChildren: () => import('./pages/products/products.module').then(m => m.ProductsModule)
},
{
path: 'retailer-home',
loadChildren: () => import('./pages/retailer-home/retailer-home.module').then(m => m.RetailerHomeModule)
},
]
}
];
This is my product-routing-module.ts
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ProductsComponent } from './products.component';
const routes: Routes = [
{ path: '', component: ProductsComponent }
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class ProductsRoutingModule {}
First time when I clicked on the menu it took too much time to load.
This is Network tab
New contributor
Programming World is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.