blob: c3ab6ab9b8a952ac7dc8e9b4b76c9cc001ed23c7 [file] [log] [blame]
import { Component, OnInit } from '@angular/core';
import { MobmonitorRpcService } from './services/mobmonitor-rpc.service';
@Component({
selector: 'mob-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {
private updated: Date;
constructor(private rpc: MobmonitorRpcService) {}
ngOnInit() {
this.updated = undefined;
this.rpc.getStatus().subscribe(
value => this.updated = new Date()
);
}
}