perbaikan profiln dan cost management
This commit is contained in:
@@ -84,6 +84,7 @@
|
||||
formControlName="phone"
|
||||
maxlength="13"
|
||||
placeholder="08**************"
|
||||
pattern="^[0-9]*$"
|
||||
[ngClass]="{
|
||||
'is-invalid': submitted && f.phone.errors
|
||||
}"
|
||||
|
||||
@@ -50,7 +50,7 @@ export class ProfilInformationComponent {
|
||||
this.profilInfo = this.formBuilder.group({
|
||||
firstName: ["", Validators.required],
|
||||
lastName: ["", Validators.required],
|
||||
email: ["", [Validators.required, Validators.email]],
|
||||
email: ["", [Validators.required, Validators.pattern(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/)]],
|
||||
phone: ["", [Validators.required, Validators.pattern(/^[0-9]{10,15}$/)]],
|
||||
image: [null],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user