Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// creates controls inside each day of week
initDayTaskInfo(day: DayInfoProject, date: Date) {
let dayTask ={
comments: new FormControl(day.comments),
day: new FormControl(date),
hours: new FormControl(day.hours, (Validators.min(0), Validators.max(24))),
open: new FormControl(,
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