diff --git a/projects/account/src/app/app-routing.module.ts b/projects/account/src/app/app-routing.module.ts
index 4423d31..93b6885 100644
--- a/projects/account/src/app/app-routing.module.ts
+++ b/projects/account/src/app/app-routing.module.ts
@@ -1,10 +1,13 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
+import { AccountResolverService } from './core/guards/account-resolver.service';
+import { DashboardComponent } from './modules/dashboard/dashboard.component';
import { PageNotFoundComponent } from 'page-not-found';
const routes: Routes = [
- { path: '', redirectTo: '/profile', pathMatch: 'full' },
+ { path: 'dashboard', component: DashboardComponent, resolve: {account: AccountResolverService} },
+ { path: '', redirectTo: '/dashboard', pathMatch: 'full'},
{ path: '**', component: PageNotFoundComponent }
];
diff --git a/projects/account/src/app/app.module.ts b/projects/account/src/app/app.module.ts
index 9501bf0..3fcf0fe 100644
--- a/projects/account/src/app/app.module.ts
+++ b/projects/account/src/app/app.module.ts
@@ -5,6 +5,7 @@ import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
+import { DashboardModule } from './modules/dashboard/dashboard.module';
import { GlobalnavModule } from 'globalnav';
import { PageNotFoundModule } from 'page-not-found';
import { DeviceModule } from './modules/device/device.module';
@@ -18,6 +19,7 @@ import { SkillModule } from './skill/skill.module';
imports: [
BrowserModule,
BrowserAnimationsModule,
+ DashboardModule,
GlobalnavModule,
HttpClientModule,
DeviceModule,
diff --git a/projects/account/src/app/modules/dashboard/dashboard.component.html b/projects/account/src/app/modules/dashboard/dashboard.component.html
new file mode 100644
index 0000000..9c9da91
--- /dev/null
+++ b/projects/account/src/app/modules/dashboard/dashboard.component.html
@@ -0,0 +1,12 @@
+
+
diff --git a/projects/account/src/app/modules/dashboard/dashboard.component.scss b/projects/account/src/app/modules/dashboard/dashboard.component.scss
new file mode 100644
index 0000000..0f48fb3
--- /dev/null
+++ b/projects/account/src/app/modules/dashboard/dashboard.component.scss
@@ -0,0 +1,5 @@
+iframe {
+ min-width: 350px;
+ width: 100%;
+ height: 100vh;
+}
diff --git a/projects/account/src/app/modules/dashboard/dashboard.component.ts b/projects/account/src/app/modules/dashboard/dashboard.component.ts
new file mode 100644
index 0000000..5268166
--- /dev/null
+++ b/projects/account/src/app/modules/dashboard/dashboard.component.ts
@@ -0,0 +1,22 @@
+import { Component, OnInit } from '@angular/core';
+import { ActivatedRoute } from '@angular/router';
+
+import { Account } from '../../shared/models/account.model';
+
+@Component({
+ selector: 'account-dashboard',
+ templateUrl: './dashboard.component.html',
+ styleUrls: ['./dashboard.component.scss']
+})
+export class DashboardComponent implements OnInit {
+ public account: Account;
+
+ constructor(private route: ActivatedRoute) {
+ }
+
+ ngOnInit() {
+ this.route.data.subscribe(
+ (data: {account: Account}) => { this.account = data.account; }
+ );
+ }
+}
diff --git a/projects/account/src/app/modules/dashboard/dashboard.module.ts b/projects/account/src/app/modules/dashboard/dashboard.module.ts
new file mode 100644
index 0000000..0d940b3
--- /dev/null
+++ b/projects/account/src/app/modules/dashboard/dashboard.module.ts
@@ -0,0 +1,17 @@
+import { NgModule } from '@angular/core';
+import { CommonModule } from '@angular/common';
+
+import { DashboardComponent } from './dashboard.component';
+
+@NgModule({
+ declarations: [
+ DashboardComponent
+ ],
+ entryComponents: [
+ DashboardComponent,
+ ],
+ imports: [
+ CommonModule
+ ]
+})
+export class DashboardModule { }