From 542d464bc7ed2bd0fb1af2af89b766609e26e8bf Mon Sep 17 00:00:00 2001 From: Jota Teles Date: Mon, 12 Dec 2016 22:31:54 -0200 Subject: [PATCH] [#96] permite abertura de post --- src/js/components/full-post/models/full-post.model.js | 1 + .../components/full-post/templates/full-post.template.html | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/js/components/full-post/models/full-post.model.js b/src/js/components/full-post/models/full-post.model.js index 3aac4ae..1422e28 100644 --- a/src/js/components/full-post/models/full-post.model.js +++ b/src/js/components/full-post/models/full-post.model.js @@ -71,6 +71,7 @@ function FullPostModel(PostsApi, TagsApi, CategoriesApi, $q, MediaApi, $FrontPre var postPromise = PostsApi.getPostById(id, configs); postPromise.then(function(result){ + result = result["data"]; model.setTitle(result.title); model.setContent(result.content); model.setDate(result.date); diff --git a/src/js/components/full-post/templates/full-post.template.html b/src/js/components/full-post/templates/full-post.template.html index 107afba..5598f54 100644 --- a/src/js/components/full-post/templates/full-post.template.html +++ b/src/js/components/full-post/templates/full-post.template.html @@ -5,8 +5,8 @@ - - - + + + \ No newline at end of file