Outbox 1 nothing shows


#1

Hi,
I checked all relevant posts on this project in the forum and could not find what the problem is with my code.

exercise link: https://www.codecademy.com/en/courses/learn-angularjs/projects/angularjs_outbox-1

index.html

<!doctype html>
<html>
  <head>
      <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,700' rel='stylesheet' type='text/css'>
    <link href="https://s3.amazonaws.com/codecademy-content/projects/bootstrap.min.css" rel="stylesheet" />
    <link href="css/main.css" rel="stylesheet" />
    <script src="js/vendor/angular.min.js"></script>
  </head>
  <body ng-app = "OutboxApp">
    <div class="header">
      <div class="container">
        <img src="img/logo.svg" width="140" height="150">
      </div>
    </div>

    <div class="main" ng-controller="HomeController">
      <div class="container">
        <div class="email" ng-repeat="email in emails">
          <span class="from">{{email.from}} </span> 
          <span class="subject"> </span>
          <span class="date"> </span>
        </div>

      </div>
    </div>

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

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

    <!-- Services -->
    <script src="js/services/emails.js"></script>
    
  </body>
</html>

HomeController.js

app.controller('HomeController', ['$scope', 'emails', function($scope, emails) {
  emails.success(function(data){
    scope.emails = data;
  })
}]);


app.js

app.controller('HomeController', ['$scope', 'emails', function($scope, emails) {
  emails.success(function(data){
    scope.emails = data;
  })
}]);


emails.js

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

this is what i get in localhost:8000


#2

found the problem!!!
missed the $ sign in HomeController.js

Capture

I’ll leave the post in case someone is stuck as I was


#3