its get from something formControlName="user_email" so value="example@gmail.com" not working … and i can not remove formControlName="user_email" … because when i try to remove this … my app not working!!!
here is my .ts code }); translate.get('address.location').subscribe(trans => this.trans = trans); this.formAddress = this.formBuilder.group({ billing_first_name: ['', Validators.required], billing_address_1: ['', Validators.required], billing_phone: ['', Validators.compose([Validators.required, CoreValidator.isPhone])],user_email: [’’],shipping_first_name: [''], shipping_address_1: [''], }); this.getData(); please tell how set defult value from user_email: [''],
bind the input value with a variable and initialize it with some value
.ts file
email:string=‘default@email.com’ before the constructor of page
and bind it with ngModel