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}}

+ +

{{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 @@ - +