17 lines
373 B
TypeScript
17 lines
373 B
TypeScript
|
|
import { CommonModule } from '@angular/common';
|
||
|
|
import { Component, Input } from '@angular/core';
|
||
|
|
|
||
|
|
@Component({
|
||
|
|
selector: 'app-key-value',
|
||
|
|
standalone: true,
|
||
|
|
imports: [CommonModule],
|
||
|
|
templateUrl: './key-value.component.html',
|
||
|
|
host: {
|
||
|
|
class: 'w-full block',
|
||
|
|
},
|
||
|
|
})
|
||
|
|
export class KeyValueComponent {
|
||
|
|
@Input() label!: string;
|
||
|
|
@Input() value?: string = '-';
|
||
|
|
}
|