Router II - Did you add code to format views and upvotes?

<!doctype html>
    <link href="" rel="stylesheet" />
    <link href=',500,300' rel='stylesheet' type='text/css'>
    <link href="css/main.css" rel="stylesheet" />

    <!-- Include the core AngularJS library -->
    <script src="//"></script>

    <!-- Include the AngularJS routing library -->
    <script src=""></script>
  <body ng-app="GalleryApp">

    <div class="header">
      <div ng-view></div>
      <div class="container">
        <a href="/#/">
          <img src="img/logo.svg" width="80" height="80"> &#12501; &#65387; &#12488; &#12501; &#65387; &#12488;
  <div class="photo">
   <div class="container">
    <img ng-src="{{ detail.url }}">
    <h2 class="photo-title"> {{ detail.title }} </h2>
    <p class="photo-author">Author: {{ }} </p>
    <p class="photo-views">Views: {{ detail.view | number }} </p>
    <p class="photo-upvotes"> {{ detail.upvotes | number }} </p>
    <p class="photo-pubdate"> {{ detail.pubdate | date }} </p>


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

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

    <!-- Services -->
    <script src="js/services/photos.js"></script>


Please, what is the problem?

The above code should be in its own template page, views/photo.html. In the previous lesson we added the line,

<div ng-view></div>

and we added a route to the photo template page. Go back to the beginning and review the instructions and your code…

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