Skip to content
Snippets Groups Projects
Commit 29fab596 authored by ddamiron's avatar ddamiron
Browse files

add data-loh service and component

parent 08d7bd08
No related branches found
No related tags found
6 merge requests!10New updated datalog,!9add all datalog components and services into angular gui,!8update Datalog research input,!4Add logs pannels to updated admin gui,!7Datalog research input,!14Version 1.3.0
<div *ngFor="let a of [data]">
<span>{{a}}</span>
</div>
import { Component, OnInit } from '@angular/core';
import { DataLogsService } from 'src/app/services/data-logs.service';
import { ActivatedRoute, ParamMap } from '@angular/router';
import { switchMap } from 'rxjs/operators';
@Component({
selector: 'app-data-logs',
templateUrl: './data-logs.component.html',
styleUrls: ['./data-logs.component.scss'],
})
export class DataLogsComponent implements OnInit {
data: any;
constructor(
private dataLogsService: DataLogsService,
private route: ActivatedRoute,
) { }
ngOnInit() {
this.data = [];
this.route.paramMap.pipe(
switchMap((params: ParamMap) => this.dataLogsService.uuidToSessionId('c1b069ca-181d-4265-9838-8d182f207bd3')))
.subscribe(result => this.data = result);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment