Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- constructor(
- public navCtrl: NavController,
- public viewCtrl: ViewController,
- public navParams: NavParams,
- public formBuilder: FormBuilder
- ) {
- this.signupForm = this.formBuilder.group({
- username:
- ['',
- Validators.compose([
- Validators.required,
- Validators.minLength(4),
- Validators.pattern(/^[a-zA-Z_\-]+$/)
- ])
- ],
- password:
- ['',
- Validators.compose([
- Validators.required,
- Validators.minLength(4),
- ])
- ]
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement