14 lines
419 B
TypeScript
14 lines
419 B
TypeScript
import { Component, Input } from '@angular/core';
|
|
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
|
|
@Component({
|
|
selector: 'abstract-field',
|
|
template: '',
|
|
imports: [ReactiveFormsModule],
|
|
})
|
|
export abstract class AbstractFieldComponent<T = string> {
|
|
@Input({ required: true }) control!: FormControl<T>;
|
|
@Input({ required: true }) name!: string;
|
|
@Input({ required: true }) label!: string;
|
|
}
|