Skip to content

Instantly share code, notes, and snippets.

@chasebaker21
Created November 19, 2020 15:31
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 chasebaker21/11e5de25666aefe0900e35039c62f6a9 to your computer and use it in GitHub Desktop.
Save chasebaker21/11e5de25666aefe0900e35039c62f6a9 to your computer and use it in GitHub Desktop.
addProjects() {
this.projectTimesheet.forEach(d => {
let group;
group = this.fb.group({
clientId: d.clientId,
clientName: d.clientName,
endDate: d.endDate,
hoursHashMap: this.initHoursHashMap(d.hoursHashMap),
projectCode: d.projectCode,
projectDesc: d.projectDesc,
startDate: d.startDate,
timesheetTaskHoursMatch: d.timesheetTaskHoursMatch
})
this.projectTime.push(group);
})
this.onChanges();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment