Sunday, October 24, 2021

 frmabc = this.fb.group({

    firstName : ['', [Validators.required , Validators.minLength(4) , Validators.maxLength(10)]],
    lastName : ['' , [Validators.required , Validators.minLength(4) , Validators.maxLength(10)]],
    email : ['' , [Validators.required, Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$')]],
    age :['' , [Validators.required, Validators.pattern('^[0-9]+$'), Validators.max(100)]],
    password : ['', [Validators.required , Validators.minLength(4) , Validators.maxLength(10)]],
    confirmPassword : ['', [Validators.required , Validators.minLength(4) , Validators.maxLength(10)]]
  }, { validators: passwordMatchingValidatior });

No comments:

Post a Comment

Webhook, WebSocket and WebAssembly

H ow systems talk to each other (Webhook & WebSocket) and how code runs efficiently (WebAssembly). 1. Webhook (The "Postman"...