todoFb = new FormGroup<TodoRequestForm>({
title: new FormControl('', [Validators.required,Validators.pattern("^[0-9a-zA-Zぁ-んーァ-ンヴー一-龠]*$")]),
body: new FormControl('',[Validators.required,Validators.pattern("^[0-9a-zA-Zぁ-んーァ-ンヴー一-龠\s]*$")]),
state_code: new FormControl(0,Validators.required),
category_id: new FormControl(0,Validators.required),
});
Converting circular structure to JSON
--> starting at object with constructor 'Object'
| property 'title' -> object with constructor 'FormControl'
| property '_parent' -> object with constructor 'FormGroup'
--- property 'controls' closes the circle undefined
強引に実装してみた
エラー