Skip to content

Change routes: First login then main dashboard screen #1281

Discussion options

You must be logged in to vote

Hi,

You need to create a new route containing your login page as the initial route. In the app-routing.module.ts file you'll see the code below

const routes: Routes = [
    {
        path: '',
        component: AppLayoutComponent,
        children: [
            {
                path: '',
                loadChildren: () =>
                    import(
                        './demo/components/dashboards/dashboards.module'
                    ).then((m) => m.DashboardsModule),
            }
        ],
    }
];

In here you need to replace the initial path which loads the dashboardsmodule with your module or page to load. It should look like this:

        path: '',
        component: App…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cetincakiroglu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants