Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// creates controls inside each day of week
initDayTaskInfo(day: DayInfoProject, date: Date) {
let dayTask = this.fb.group({
comments: new FormControl(day.comments),
day: new FormControl(date),
hours: new FormControl(day.hours, (Validators.min(0), Validators.max(24))),
open: new FormControl(day.open),
tasks: this.initTaskInfo(day.tasks)
})
return dayTask;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment