forma: FormGroup = new FormGroup({});
this.forma = new FormGroup({
nombre: new FormControl('', [Validators.required, Validators.minLength(3)]),
apellido: new FormControl('', [Validators.required, Validators.minLength(3)]),
correo: new FormControl('', [Validators.required, Validators.minLength(3), Validators.pattern("[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$") )
});
No hay comentarios:
Publicar un comentario