diff --git a/src/app/components/noosfero-articles/blog/blog.directive.js b/src/app/components/noosfero-articles/blog/blog.directive.js index fd47db4..b4b3c7b 100644 --- a/src/app/components/noosfero-articles/blog/blog.directive.js +++ b/src/app/components/noosfero-articles/blog/blog.directive.js @@ -22,7 +22,13 @@ return directive; /** @ngInject */ - function BlogController() { + function BlogController(noosfero) { + var vm = this; + vm.posts = []; + + noosfero.articles.one(vm.article.id).customGET('children', {content_type: 'TinyMceArticle'}).then(function(result) { + vm.posts = result.articles; + }); } } diff --git a/src/app/components/noosfero-articles/blog/blog.html b/src/app/components/noosfero-articles/blog/blog.html index 336fc09..3f517f2 100644 --- a/src/app/components/noosfero-articles/blog/blog.html +++ b/src/app/components/noosfero-articles/blog/blog.html @@ -9,10 +9,10 @@