Skip to content

Instantly share code, notes, and snippets.

View fischermatte's full-sized avatar

G. Ludewig fischermatte

View GitHub Profile
@fischermatte
fischermatte / TestTypedForms.ts
Last active January 26, 2022 19:22 — forked from dmorosinotto/TestTypedForms.ts
compatible with Angular 13
import { FormGroup, FormControl, FormArray, Validators } from "@angular/forms";
function testFormGroupTyped() {
var frm = new FormGroup({
a: new FormArray([new FormControl(0)]),
b: new FormControl(true),
c: new FormGroup({
s: new FormControl("abc"),
n: new FormControl(123)
})