pcb demo code.
[ealt-edge.git] / example-apps / PDD / frontend-src / src / app / home / home.component.ts
diff --git a/example-apps/PDD/frontend-src/src/app/home/home.component.ts b/example-apps/PDD/frontend-src/src/app/home/home.component.ts
new file mode 100644 (file)
index 0000000..3094dc2
--- /dev/null
@@ -0,0 +1,23 @@
+import { Component, OnInit } from '@angular/core';
+import { ToolbarService } from './../toolbar/toolbar.service';
+
+@Component({
+  selector: 'app-home',
+  templateUrl: './home.component.html',
+  styleUrls: ['./home.component.scss']
+})
+export class HomeComponent implements OnInit {
+  // images = [944, 1011, 984].map((n) => `https://picsum.photos/id/${n}/900/500`);
+  images = ["./../../assets/images/iotlatest1.png","./../../assets/images/iotlatest1.png","./../../assets/images/iotlatest1.png"];
+  public currentUser;
+  
+  constructor(public toolbarService: ToolbarService) {
+    this.currentUser = localStorage.getItem('currentUser')? JSON.parse(localStorage.getItem('currentUser')) : '';
+  }
+
+  ngOnInit() {
+    // this.toolbarService.show();
+    this.toolbarService.show();
+  }
+
+}