From bf99c991a27d7838b85a1398188afd8c5212ac32 Mon Sep 17 00:00:00 2001 From: Molly Kent Date: Fri, 9 Oct 2015 12:36:08 -0700 Subject: [PATCH] Fix filename typo in post_detail.html --- .../views/post/post_detail.html | 0 public/views/post/post_form.html | 2 +- src/app/app.js | 3 ++- src/app/post/post_detail.html | 10 ++++++++++ src/app/post/post_form.html | 2 +- 5 files changed, 14 insertions(+), 3 deletions(-) rename src/app/post/post_details.html => public/views/post/post_detail.html (100%) create mode 100644 src/app/post/post_detail.html diff --git a/src/app/post/post_details.html b/public/views/post/post_detail.html similarity index 100% rename from src/app/post/post_details.html rename to public/views/post/post_detail.html diff --git a/public/views/post/post_form.html b/public/views/post/post_form.html index dddb5cc..5d89bfa 100644 --- a/public/views/post/post_form.html +++ b/public/views/post/post_form.html @@ -1,7 +1,7 @@
- + diff --git a/src/app/app.js b/src/app/app.js index 9a52a3f..db66df5 100644 --- a/src/app/app.js +++ b/src/app/app.js @@ -1,4 +1,5 @@ require('angular'); +require('angular-route'); (function () { "use strict"; @@ -33,5 +34,5 @@ require('angular'); ]); }()); -require('angular-route'); + require('./index.js'); diff --git a/src/app/post/post_detail.html b/src/app/post/post_detail.html new file mode 100644 index 0000000..26d577a --- /dev/null +++ b/src/app/post/post_detail.html @@ -0,0 +1,10 @@ +
+

{{vm.post.title}}

+
    +
  • By {{vm.post.author}}
  • +
  • {{vm.post.date | date: 'MMM dd, yyyy'}}
  • +
  • {{vm.post.comments}} comments
  • +
+

{{vm.post.content}}

+ edit this post +
diff --git a/src/app/post/post_form.html b/src/app/post/post_form.html index dddb5cc..5d89bfa 100644 --- a/src/app/post/post_form.html +++ b/src/app/post/post_form.html @@ -1,7 +1,7 @@ - +