“validasi sudut” Kode Jawaban

Sudut Pola Validasi Email

 pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$"
Grieving Gharial

Validasi email sudut


<input type="email" name="email" ngModel email>
<input type="email" name="email" ngModel email="true">
<input type="email" name="email" ngModel [email]="true">
    
2 Programmers 1 Bug

Validasi Minlength Angular

Validators.minLength(9)
GutoTrosla

Periksa FormGroup jika valid

form: FormGroup;

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

validasi sudut

this.annonce_form = new FormGroup({
      title: new FormControl('', Validators.compose([
        Validators.maxLength(25),
        Validators.minLength(5),
        Validators.required,
        Validators.pattern('^(?=.*[a-zA-Z])[a-zA-Z0-9]+$'), // <-- Allow letters and numbers only
      ])),
    })
Uptight Unicorn

Jawaban yang mirip dengan “validasi sudut”

Pertanyaan yang mirip dengan “validasi sudut”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya