Skip to content

Instantly share code, notes, and snippets.

@leifermendez
Created May 4, 2021 10:24
Show Gist options
  • Save leifermendez/7fa87ada029d02910fe456b8c5c6d20d to your computer and use it in GitHub Desktop.
Save leifermendez/7fa87ada029d02910fe456b8c5c6d20d to your computer and use it in GitHub Desktop.
test-form-asyn.ts
this.form = this.formBuilder.group({
tenantId: [
null,
Validators.compose(
[Validators.required,
Validators.minLength(3),
Validators.maxLength(15),
Validators.pattern('^[a-zA-Z0-9]+$')],
),
this.rest.tenantValidator()
],
check: [''],
name: ['', [Validators.required]],
email: ['', [Validators.required, Validators.email]]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment