Last active
September 2, 2017 06:25
-
-
Save alexonozor/05311886e1a32e326046bf26c516863a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const userForm = new FormGroup({ | |
userName: new FormControl('', [ Validators.required, Validators.minLength(4)]), | |
firstName: new FormControl('', [ Validators.required, Validators.minLength(2)]), | |
lastName: new FormControl(''), | |
address: new FormGroup({ | |
street: new FormControl('', Validators.required), | |
city: new FormControl(''), | |
zipCode: new FormControl('') | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment