Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myForm: FormGroup;
- myPassword = new FormControl();
- constructor(dataService: DataService) {
- this.myForm = new FormGroup(
- {
- myUserName: new FormControl('', [Validators.required]),
- myPassword: this.myPassword
- }
- );
- }
- reactiveLogin(){
- console.log(JSON.stringify(this.myForm.value));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement