Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// gets form data for adminTime from child component admin timesheet
getAdminForm(adminFormData: FormGroup) {
this.adminForm = adminFormData.get('adminTime').value;
this.timesheetForm.get('adminTime').patchValue(this.adminForm);
}
// get form data for projectTime from child component project timesheet
getProjectForm(projectFormData: FormGroup) {
this.projectForm = projectFormData.get('projectTime').value;
this.timesheetForm.get('projectTime').patchValue(this.projectForm);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment