blob: 76dd7d20ad25e18b6fb25422ac8bff0e5f5e8d11 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
import { Component, OnInit } from '@angular/core';
import { SignalRService } from 'src/app/_services/signal-r.service';
@Component({
selector: 'app-metric-view',
templateUrl: './metric-view.component.html',
styleUrls: ['./metric-view.component.css']
})
export class MetricViewComponent implements OnInit {
myAcc:[]=[];
myMae:[]=[];
myMse:[]=[];
myEpochs:[]=[];
constructor(private signalRService: SignalRService) { }
ngOnInit(): void {
if(this.signalRService.hubConnection)
{
this.signalRService.hubConnection.on("NotifyEpoch", (mName: string, mId: string, stat: string, totalEpochs: number, currentEpoch: number) => {
console.log(stat)
console.log(totalEpochs)
const data=JSON.parse(stat)
for (let key in data)
{
let value = data[key];
console.log(value)
}
});
}
}
}
|