diff --git a/src/app/dashboard/dashboard.module.ts b/src/app/dashboard/dashboard.module.ts index 5e9956e..4b95668 100644 --- a/src/app/dashboard/dashboard.module.ts +++ b/src/app/dashboard/dashboard.module.ts @@ -1,10 +1,13 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; +import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { ChartsModule } from 'ng2-charts/ng2-charts'; import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; import { DashboardComponent } from './dashboard.component'; import { LeaderboardsComponent } from './leaderboards.component'; +import { AccountEditComponent } from './account-edit.component'; +import { AddDataComponent } from './add-data.component'; import { DashboardRoutingModule } from './dashboard.routing'; @@ -13,11 +16,15 @@ import { DashboardRoutingModule } from './dashboard.routing'; DashboardRoutingModule, ChartsModule, BsDropdownModule, - CommonModule + CommonModule, + FormsModule, + ReactiveFormsModule, ], declarations: [ DashboardComponent, LeaderboardsComponent, + AccountEditComponent, + AddDataComponent, ] }) export class DashboardModule { } diff --git a/src/app/dashboard/dashboard.routing.ts b/src/app/dashboard/dashboard.routing.ts index 284e853..792ac39 100644 --- a/src/app/dashboard/dashboard.routing.ts +++ b/src/app/dashboard/dashboard.routing.ts @@ -5,6 +5,8 @@ import { AuthGuard } from '../_guards/auth.guard'; import { DashboardComponent } from './dashboard.component'; import { LeaderboardsComponent } from './leaderboards.component'; import { FullLayoutComponent } from '../layouts/full-layout.component'; +import { AccountEditComponent } from './account-edit.component'; +import { AddDataComponent } from './add-data.component'; // Using child path to allow for FullLayout theming const routes: Routes = [ @@ -22,6 +24,16 @@ const routes: Routes = [ path: 'leaderboards', component: LeaderboardsComponent, data: { title: 'Leaderboards' }, + }, + { + path: 'account-edit', + component: AccountEditComponent, + data: { title: 'Leaderboards' }, + }, + { + path: 'add-data', + component: AddDataComponent, + data: { title: 'Add Transaction' }, } ], } diff --git a/src/app/layouts/full-layout.component.html b/src/app/layouts/full-layout.component.html index 73087e7..dbc53ae 100644 --- a/src/app/layouts/full-layout.component.html +++ b/src/app/layouts/full-layout.component.html @@ -11,7 +11,7 @@