myData = [{
"Total_Demand": "800",
"weekly": [
{
"CycleTime": .65,
"Demand": 650,
},
{
"CycleTime": .75,
"Demand": 820,
}
]
}]
if i do console.log("The Data of weekly is", this.myData[0].weekly[0]);
I'm able to get the data object but not able to iterate
for(let i=0; i > this.myData[0].weekly.length; i++) {
this.WeeklyData = [this.myData[0].weekly[i]].push(this.WeeklyData);
}
WeeklyData is not having data it is showing as undefined