blob: 705bf475dc61357a6fba62a868519dddce896c96 (
plain)
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
|
import { Component, OnInit } from '@angular/core';
import { AdminService } from '../admin.service';
@Component({
selector: 'app-usage',
templateUrl: './usage.component.html',
styleUrls: ['./usage.component.scss']
})
export class UsageComponent implements OnInit {
response: any;
result: any;
users:any;
usageHeaders = ["userId","userName","email","lastAccessTime","timeRemaining","userSession"];
constructor(public adminService: AdminService) { }
ngOnInit() {
this.adminService.getUsageList()
.subscribe(data => {
this.response = data;
this.users = JSON.parse(this.response.data);
});
}
}
|