Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
[#96] permite abertura de post
Browse files Browse the repository at this point in the history
  • Loading branch information
teles committed Dec 13, 2016
1 parent b62c793 commit 542d464
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/js/components/full-post/models/full-post.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions src/js/components/full-post/templates/full-post.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<post-date data-post="vc.vm"></post-date>
<featured-image data-post="vc.vm"></featured-image>
<full-post-content data-post="vc.vm"></full-post-content>
<share data-post="vc.vm"></share>
<full-post-categories-list data-post="vc.vm"></full-post-categories-list>
<full-post-tags-list data-post="vc.vm"></full-post-tags-list>
<share data-post="vc.vm"></share>
<full-post-categories-list data-post="vc.vm"></full-post-categories-list>
<full-post-tags-list data-post="vc.vm"></full-post-tags-list>
</div>
</div>

0 comments on commit 542d464

Please sign in to comment.