Skip to content

Instantly share code, notes, and snippets.

@jsrath
Created January 9, 2019 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsrath/f35e51a8e5a77d07a4c030e693941620 to your computer and use it in GitHub Desktop.
Save jsrath/f35e51a8e5a77d07a4c030e693941620 to your computer and use it in GitHub Desktop.
constructor(private formBuilder: FormBuilder, private dataService: DataService) {}
ngOnInit() {
this.birthday = this.formBuilder.group({
birthdayDate: ['', Validators.required],
});
this.gender = this.formBuilder.group({
genderSelect: ['', Validators.required],
});
this.excercise = this.formBuilder.group({
excerciseSelect: ['', Validators.required],
});
this.dataService.getData().subscribe(data => (this.ageData = data));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment