The event view is not working


#1

Hello.
I will be glad for your help.
Until the last exersice, everythig worked.

EventController.js:

app.controller('EventController', ['$scope', 'events', '$routeParams', function($scope, events, $routeParams) {
  events.success(function(data) {
    $scope.event = data.events[$routeParams.id];
  });
}]);

event.html:

<div class="event-detail">
  <h2 class="event-name"> {{ event.name }} </h2>
  <p class="time"> <span class="from"> {{ event.to | date }} </span> - <span class="to"> {{ event.to | date }} </span></p>
  <p class="where"> {{ event.where }} </p>
</div>

I can't see the details of a single event after clicking. I am getting to the page but only seeing: {{ event.name }} and so on...
What to do?


#2

That stuff looks right. The error might be in app.js.