0
[email protected] created
Hi,
Is it possible to load a different layout or theme for a specific route or component/module in the Angular application, based on the main module?
For example, I know that the AppComponent
's default layout (with sidebar, header, and footer) is typically loaded due to the configuration in app-routing.module.ts
. However, for a specific route like /app/main/register-product
, I want to display a blank layout without the sidebar, header, or footer.
The RegisterProduct
component is part of the main module. How can I achieve this?
1 Answer(s)
-
0
Hi,
App decides which layout to use here https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/app/app.component.html#L2-L14. You can add your logic here to change the used theme.