Hey guys
I would like to know if it is possible to change the main page of the template to the home page. Currently the first page is the login page, I would like to change it to home.
Hi,
I apologize for the delay in getting back to you. Modifying the existing Metronic Angular framework may be a quite complex.
The code for the dashboard page can be found in the file /src/app/pages/routing.ts. As shown below:
{
path: "dashboard",
loadChildren: () =>
import("./dashboard/dashboard.module").then((m) => m.DashboardModule),
},
{
path: "",
canActivate: [AuthGuard],
loadChildren: () =>
import("./_metronic/layout/layout.module").then((m) => m.LayoutModule),
},
layout.module
is essential for the dashboard layout.dashboard-layout.module
, place only the dashboard route and its layout.