Services II


I'm not understanding where day. is coming from. Should it not be days.?


fiveday.days is the array and you have to loop every element in that and day is the variable that is helping us to loop in days array.
lets say, you want to access element datetime then you can write day.datetime


the variable day is coming from here:
ng-repeat="day in fiveDay.days"

this is similar to writing a for loop:
for day in fiveDay.days:
echo day