1 import { Component, OnInit, Input } from '@angular/core';
2 import { LogService } from './log.service';
6 templateUrl: './log.component.html',
7 styleUrls: ['./log.component.css']
9 export class LogComponent implements OnInit {
11 @Input("reportId") reportId1 : string;
12 @Input("reportType") reportType : string;
14 showSpinner : boolean;
19 constructor(private _logService : LogService) {
20 this.showSpinner = false;
21 this.logDataList = new Array();
25 this.showSpinner = true;
26 if(this.reportType === "Dashboard")
35 this._logService.getLogData(this.reportId1)
36 .subscribe((responseLogData) => {
38 this.showSpinner = true;
40 this.logDataList = responseLogData;
42 console.log(this.logDataList);
44 this.showSpinner = false;