this.form.controls.pan.value 正在打印设置的内容,但对象 this.form.controls.pan 具有 'value' 属性 null

问题描述

if (this.constitutionType == 'INDIVIDUAL'){
        
    // this.form.patchValue({
    //   pan_panNumber : "abhis",//   pan_panName : "abhis"

    // })
    console.log("controls befor ",this.form.controls )
    this.form.patchValue({
      pan_panNumber : "AWWPY3075S",// pan_panName : "abhis"

    })
    // this.form.controls.pan_panNumber.setValue( "Awwpy3456g");
    // this.form.controls.pan_panName.setValue("abhsiehk" );
    console.log("Individual  form control : =>",this.form.controls.pan_panNumber.value,this.form.controls.pan_panNumber )
    this.form.controls.pan_panNumber.updateValueAndValidity();
    console.log("controls after ",this.form.controls )
        
}

browser console.log screenshot is of third last line

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)