ngForm

Creates a top-level FormGroup instance and binds it to a form to track aggregate form value and validation status.

Console

TS

submit(f){
    console.log(f);
    console.log(f.value.firstName);
    console.log(f.value.comment);
  }

HTML

Was this page helpful?