feat: chain form group

This commit is contained in:
2026-02-07 23:32:23 -03:00
parent d4723e6a24
commit 1146bf6f8d

View File

@@ -0,0 +1,12 @@
import { FormControl, FormGroup, Validators } from '@angular/forms';
export class ChainFormGroup extends FormGroup<{name: FormControl<string|null>, image: FormControl<File|null>}> {
constructor(
form = {
name: new FormControl('', Validators.required),
image: new FormControl<File | null>(null),
},
) {
super(form);
}
}