I have a function written in TypeScript:
// Form
summaryAreaForm = new FormGroup ({
summary: new FormControl(null)
})
// Function
update() {
document.getElementById('textDiv').innerHTML = this.summaryAreaForm('summary').value;
}
When I try to access
this.summaryAreaForm('summary').value
, I encounter the error message Cannot invoke an expression whose type lacks a call signature. Type 'FormGroup' has no compatible call signatures.
. How can I resolve this issue?