Rearrange leaderboards, dashboard, etc files
This commit is contained in:
parent
8939c18335
commit
48b0e0c81f
17 changed files with 65 additions and 552 deletions
34
src/app/dashboard/dashboard.routing.ts
Normal file
34
src/app/dashboard/dashboard.routing.ts
Normal file
|
@ -0,0 +1,34 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
import { AuthGuard } from '../_guards/auth.guard';
|
||||
|
||||
import { DashboardComponent } from './dashboard.component';
|
||||
import { LeaderboardsComponent } from './leaderboards.component';
|
||||
import { FullLayoutComponent } from '../layouts/full-layout.component';
|
||||
|
||||
// Using child path to allow for FullLayout theming
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: FullLayoutComponent,
|
||||
canActivate: [AuthGuard],
|
||||
children: [
|
||||
{
|
||||
path: 'dashboard',
|
||||
component: DashboardComponent,
|
||||
data: { title: 'Dashboard' },
|
||||
},
|
||||
{
|
||||
path: 'leaderboards',
|
||||
component: LeaderboardsComponent,
|
||||
data: { title: 'Leaderboards' },
|
||||
}
|
||||
],
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class DashboardRoutingModule {}
|
Reference in a new issue