Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Load different theme for component in MainModule - Angular #12260


User avatar
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?


No answer yet!