Initial commit

This commit is contained in:
2025-03-05 21:38:10 +01:00
commit 503909d762
198 changed files with 19203 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { Directive, HostBinding, Input, Optional } from '@angular/core';
import { ControlContainer } from '@angular/forms';
@Directive({
selector: 'span[control]'
})
export class LabelDirective {
@Input() control: string = ""
constructor(@Optional() private parent: ControlContainer) { }
@HostBinding('textContent')
get controlValue() {
return this.parent ? this.parent.control?.get(this.control)?.value : ""
}
}