Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// creates controls for each day of week in hoursHashMap form group
initHoursHashMap(data: HoursHashMap) {
return this.fb.group({
Sunday: this.initDayTaskInfo(data.Sunday, this.sunday),
Monday: this.initDayTaskInfo(data.Monday, this.monday),
Tuesday: this.initDayTaskInfo(data.Tuesday, this.tuesday),
Wednesday: this.initDayTaskInfo(data.Wednesday, this.wednesday),
Thursday: this.initDayTaskInfo(data.Thursday, this.thursday),
Friday: this.initDayTaskInfo(data.Friday, this.friday),
Saturday: this.initDayTaskInfo(data.Saturday, this.saturday)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment