app/src/commons/component/detail/node-detail.component.ts
crusader 1c4183c62c ing
2018-10-04 21:43:35 +09:00

26 lines
538 B
TypeScript

import { Component, Input, Output, Host, EventEmitter } from '@angular/core';
import { PingResult } from '@overflow/model/ping';
@Component({
selector: 'app-node-detail',
templateUrl: './node-detail.component.html',
styleUrls: ['./node-detail.component.scss'],
})
export class NodeDetailComponent {
@Input() node;
@Output() otherHostSelect = new EventEmitter<Host>();
@Output() ping = new EventEmitter<PingResult>();
constructor(
) {
}
otherHostSelected(host: Host) {
this.otherHostSelect.emit(host);
}
}