Whenever I try to set a property, I encounter an error message stating "cannot set property of undefined".
vm.dtr1 = {}; // Could it be that I have incorrectly initialized this?
vm.dtr1.date1 = {}; // Could it be that I have incorrectly initialized this?
for(var x=0; x<5; x++){
vm.dtr1[x].date1 = new Date(days[x]); // It seems like I am receiving an undefined value here
}