Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created January 7, 2018 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/3b8d58806e681285674bdc0f9be2f2fc to your computer and use it in GitHub Desktop.
Save uno-de-piera/3b8d58806e681285674bdc0f9be2f2fc to your computer and use it in GitHub Desktop.
this.loginForm = this.fb.group({
email: ['', Validators.compose([Validators.required, Validators.email]) ],
password: ['', Validators.compose([Validators.required, Validators.minLength(6)]) ],
phone: ['', Validators.compose(
[
Validators.required,
phoneValidator(/^[679]{1}[0-9]{8}$/),
]
)]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment