Rearrange leaderboards, dashboard, etc files

This commit is contained in:
Tom Bloor 2017-08-15 17:41:27 +01:00
parent 8939c18335
commit 48b0e0c81f
17 changed files with 65 additions and 552 deletions

View 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 {}