23 lines
435 B
TypeScript
23 lines
435 B
TypeScript
import { Component, Input, Output, Host, EventEmitter } from '@angular/core';
|
|
|
|
|
|
@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>();
|
|
|
|
constructor(
|
|
) {
|
|
|
|
}
|
|
|
|
otherHostSelected(host: Host) {
|
|
this.otherHostSelect.emit(host);
|
|
}
|
|
}
|