Step 5, day.date expression will not display


#1



https://www.codecademy.com/courses/learn-angularjs/projects/angularjs_calendar

https://gist.github.com/codecademydev/b47d74a6839f38219ce7fbfa7385c7b9

I have reviewed all of the posts here related to this exact topic, but still cannot get the date to display via DayController, day.html, etc. Just keeps displaying: {{ day.date }}


#2

Figured it out, DayController I did not enclose events in '':

NOT WORKING:

app.controller('DayController', ['$scope', events, function($scope, events) {
  events.success(function(data) {
    $scope.day = data;
  });
}]);

WORKING:

app.controller('DayController', ['$scope', 'events', function($scope, events) {
  events.success(function(data) {
    $scope.day = data;
  });
}]);

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.