Outbox 2


#1

I’m stuck in outbox 2. The browser isn’t displaying anything. Can someone tell me whats wrong?
index.html

<!doctype html>
<html>
  <head>
    <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>
<script src="https://code.angularjs.org/1.2.28/angular-route.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">
      <div class="container">


      <div ng-view></div>
        
        
      </div>
    </div>

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

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

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

email.html

Back


{{email.subject}}


{{email.from}}
{{email.datetime|date}}

{{email.message}}


app.js

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

app.config(function ($routeProvider) {
$routeProvider
.when('/outbox', {
controller: 'HomeController',
templateUrl: 'views/home.html'
})
.when('/outbox/:id',{
controller:'EmailController',
templateUrl:"views/email.html"
})
.otherwise({
redirectTo: '/'
});
});
`


#2

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