After following the tutorial at https://angular.io/guide/lazy-loading-ngmodules#create-a-feature-module-with-routing
I set out to create the following:
My goal is to have a dedicated module for all customer-related components accessible through the /customers route.
Within this new module, I envision having a menu bar that remains visible at all times, containing options like Subpage1, Subpage2, and so on.
In the app.module, I understand that I can add content to app.component.html before the router-outlet tag, ensuring it remains present across all pages. Additionally, in app-routing.module.ts, I never explicitly specify that the path '' should load AppComponent; it automatically serves as the default component.
So my question is, how can I replicate this behavior with another module loaded using the following code:
const routes: Routes = [
{ path: 'customers', loadChildren: () => import('./customers/customers.module').then(m => m.CustomersModule) }
];