1 import {Component, OnInit, ViewChild} from '@angular/core';
2 import {ActivatedRoute} from '@angular/router';
3 import {NetService} from '@eg/core/net.service';
4 import {AuthService} from '@eg/core/auth.service';
5 import {ItemEventGridComponent} from './event-grid.component';
8 templateUrl: 'event-log.component.html'
11 export class ItemEventLogComponent implements OnInit {
14 @ViewChild('itemEventGrid', { static: true }) itemEventGrid: ItemEventGridComponent;
17 private route: ActivatedRoute,
18 private net: NetService,
19 private auth: AuthService
23 // Note: if this is not supplied, the grid will show recent events
24 // across all items, which may be a neat feature...
25 this.itemId = +this.route.snapshot.paramMap.get('item');