📜  angular formgroup 手动验证 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:23.047000             🧑  作者: Mango

代码示例2
form: FormGroup;

onSubmit(){
    //checks if form is valid
       if( this.form.valid){
          //more code here
        }
}