Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created January 16, 2018 01:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save debugmodedotnet/d5b5069da46bdb2eeeb2dbbd22829f39 to your computer and use it in GitHub Desktop.
ngOnInit() {
this.loginForm = new FormGroup({
email: new FormControl(null, [Validators.required]),
password: new FormControl(null, [Validators.required, Validators.maxLength(8)]),
age : new FormControl(null)
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment