member_webapp/@overflow/commons/component/key-value/key-value.component.ts

24 lines
447 B
TypeScript
Raw Normal View History

2018-04-18 12:56:57 +00:00
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
@Component({
selector: 'of-key-value',
templateUrl: './key-value.component.html'
})
export class KeyValueComponent implements OnInit {
@Input() key: string;
@Input() value: string;
@Input() clickable = false;
@Output() click = new EventEmitter<string>();
constructor(
) { }
ngOnInit() {
}
onClick() {
this.click.emit(this.value);
}
}