Skip to content

Instantly share code, notes, and snippets.

Created November 23, 2020 19:24
What would you like to do?
// creates a form after checking the tasks length in order to start setting
// the taskSeq number properly
createForm() {
if (this.tasks.length === 0) {
this.taskSeq = 1;
this.taskForm ={
comments: new FormControl(null),
day: new FormControl(null),
hours: new FormControl(null),
oldHours: new FormControl(null),
open: new FormControl(null),
tasks: this.fb.array([{
taskDesc: '',
taskSeq: this.taskSeq,
hours: 0,
comments: '',
statusReportFlag: true,
taskCategoryId: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment