Advertisement
Guest User

Untitled

a guest
Oct 24th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. myForm: FormGroup;
  2. myPassword = new FormControl();
  3.  
  4. constructor(dataService: DataService) {
  5.  
  6. this.myForm = new FormGroup(
  7. {
  8. myUserName: new FormControl('', [Validators.required]),
  9. myPassword: this.myPassword
  10. }
  11. );
  12. }
  13.  
  14. reactiveLogin(){
  15. console.log(JSON.stringify(this.myForm.value));
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement