salah posisi validator
This commit is contained in:
parent
d43a26513e
commit
52481cbc4b
|
@ -59,11 +59,8 @@ export class AddEditMasterBuildingComponent {
|
|||
statusId: [this.dataRow.status_id, Validators.required],
|
||||
email: [this.dataRow.email, [Validators.required, Validators.pattern(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/)]],
|
||||
address: [this.dataRow.address, Validators.required],
|
||||
owner: [this.dataRow.owner, [Validators.required, Validators.pattern(/^[0-9]{10,15}$/)]],
|
||||
phone: [
|
||||
this.dataRow.phone,
|
||||
[Validators.required, Validators.pattern("^[0-9]*$")],
|
||||
],
|
||||
phone: [this.dataRow.phone, [Validators.required, Validators.pattern(/^[0-9]{10,15}$/)]],
|
||||
owner: [this.dataRow.owner,Validators.required],
|
||||
kwh: [this.dataRow.kwh, Validators.required],
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue