1/3. Services I

Someone pease help me. I am stuck on this! :frowning2:
here is my code:

<!doctype html>

<!-- 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">
    <ul>
    <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">
            </div>
            <!-- icon -->
            <div class="weather col-xs-3">
            </div>
            <div class="col-xs-1"></div>
            <!-- high -->
            <div class="high col-xs-2">
            </div>
            <!-- low -->
            <div class="low col-xs-2">
            </div>
          </div>
        </div>
      </div>
    </div>
    </ul>
  </div>
</div>
<!-- Modules -->
<script src="js/app.js"></script>
<!-- Controllers -->
<script src="js/controllers/MainController.js"></script>
<script src="js/services/forecast.js in index.html"></script>
<!-- Directives -->
```

Here Is my other code:

app.factory('forecast', ['$http', function($http) { 
  return $http.get('https://s3.amazonaws.com/codecademy-content/courses/ltp4/forecast-api/forecast.json') 
            .success(function(data) { 
              return data; 
            }) 
            .error(function(err) { 
              return err; 
            }); 
}]);

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