import { Component, input } from '@angular/core'; /** Molecule: form field = label + projected control + optional error/description. Reused by both the login form and the change-request form. */ @Component({ selector: 'app-form-field', template: `
@if (description()) {
{{ description() }}
} @if (error()) { }
`, }) export class FormFieldComponent { label = input.required(); fieldId = input.required(); description = input(); error = input(); }