Day.html Showing expressions instead of Data from JSON

Hello all,
I’ve checked my code several times, but I think I am missing something to correct. My Output of day.html showing expressions like {{ | datetime}} Where it should display date. Please check and help…


    `<h2 class="date"> {{ | datetime}} </h2>
    <div class="event" ng-repeat="day in">
      <a href="#/{{$index}}">
        <h3 class="name"> {{}} </h3>
        <p><span class="from"> {{day.from}} </span> - <span class="to"> {{}} </span></p>


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


app.factory('events', ['$http', function($http) {
  return $http.get('')
        return data;
        return err;


var app = angular.module('CalendarApp', ['ngRoute']);

Please help !! and Thank you for your glance !! :slight_smile:

Have you read

Error 1: In this filter, <h2 class="date"> {{ | datetime}} </h2>, datetime is not an acceptable term to use.

Incorrect: <h2 class="date"> {{ | datetime}} </h2>

Correct: <h2 class="date"> {{}} </h2> OR <h2 class="date">{{|date:'EEEE, M/d '}} </h2>

The Chrome console gave me this error:

Error: [$injector:unpr]$injector/unpr?p0=datetimeFilterProvider%20%3C-NaNatetimeFilter angular.min.js:102

At first the error seemed like gibberish to me, but at the end, it says something along the lines of NAN Time Filter. This is good to know for the future. If I see the same error, I know to look at the filters.

1 Like