app/src/commons/component/node-detail.component.ts

25 lines
537 B
TypeScript
Raw Normal View History

2018-09-13 11:01:01 +00:00
import { Component, Input, Output, Host, EventEmitter } from '@angular/core';
2018-09-18 12:25:47 +00:00
import { PingResult } from '@overflow/model/ping';
2018-09-09 10:20:21 +00:00
@Component({
selector: 'app-node-detail',
templateUrl: './node-detail.component.html',
styleUrls: ['./node-detail.component.scss'],
})
export class NodeDetailComponent {
@Input() node;
2018-09-13 11:01:01 +00:00
@Output() otherHostSelect = new EventEmitter<Host>();
2018-09-18 12:25:47 +00:00
@Output() ping = new EventEmitter<PingResult>();
2018-09-09 10:20:21 +00:00
constructor(
) {
}
2018-09-13 11:01:01 +00:00
otherHostSelected(host: Host) {
this.otherHostSelect.emit(host);
}
2018-09-09 10:20:21 +00:00
}