AngularJS Lesson: Services Exercise 2. Service II Item 3


#1

Good morning,
I'm doing the AngularJS course and I am doing
Lesson: Services
Exercise 2. Service II
The bug is that I have finished with the exercise but when I hit the run button it doesn't check the item 3 and it does not give me any error message. I even try getting the code from codecademy and it continue broken.
Any one else with this problem?


#2

the problem might still come from your code


#3

Don't think so, because, as I said before, I also ask for the code that codecademy give when you get stuck.
This is the item:
3. Use the date filter to format the datetime.

Here is the code:







<!-- Include the AngularJS library -->
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.5/angular.min.js"></script>


<div class="main" ng-controller="MainController">
  <div class="container">
    <div class="row">
      <div class="col-sm-5 col-sm-offset-7">
        <h1>{{ fiveDay.city_name }}</h1>
        <h2>5-day forecast</h2>
        <div class="forecast" ng-repeat="day in fiveDay.days">
          <div class="day row">

            <!-- datetime -->
            <div class="weekday col-xs-4">
							{{ day.datetime | date:'EEEE'}}
            </div>


            <!-- icon -->
            <div class="weather col-xs-3">
							<img ng-src="{{day.icon}}">
            </div>

            <div class="col-xs-1"></div>


            <!-- high -->
            <div class="high col-xs-2">
							{{ day.high }}

            </div>


            <!-- low -->
            <div class="low col-xs-2">
							{{ day.low }}
            </div>
          </div>
        </div>
      </div>
    </div>
    </ul>
  </div>
</div>

<!-- Modules -->
<script src="js/app.js"></script>

<!-- Controllers -->
<script src="js/controllers/MainController.js"></script>

<!-- Services -->

<!-- Directives -->




#4

try

{{ day.datetime | date}}

#5

Can't believe it. It worked! Thanks!