Home page carousel
[eliot.git] / blueprints / common / eliot-ui / frontend-src / src / app / home / home.component.ts
index f56c8c1..299fcc4 100644 (file)
@@ -1,4 +1,5 @@
 import { Component, OnInit } from '@angular/core';
+import { ToolbarService } from './../toolbar/toolbar.service';
 
 @Component({
   selector: 'app-home',
@@ -6,10 +7,17 @@ import { Component, OnInit } from '@angular/core';
   styleUrls: ['./home.component.scss']
 })
 export class HomeComponent implements OnInit {
-
-  constructor() { }
+  // images = [944, 1011, 984].map((n) => `https://picsum.photos/id/${n}/900/500`);
+  images = ["./../../assets/images/iotlatest1.png","./../../assets/images/login2.jpg","./../../assets/images/iotlatest6.jpg"];
+  public currentUser;
+  
+  constructor(public toolbarService: ToolbarService) {
+    this.currentUser = localStorage.getItem('currentUser')? JSON.parse(localStorage.getItem('currentUser')) : '';
+  }
 
   ngOnInit() {
+    // this.toolbarService.show();
+    this.toolbarService.show();
   }
 
 }