diff --git a/src/app/main/main.component.ts b/src/app/main/main.component.ts index 142e078..2a72d89 100644 --- a/src/app/main/main.component.ts +++ b/src/app/main/main.component.ts @@ -1,5 +1,5 @@ import {bundle, Component, StateConfig} from "ng-forward"; -import {NoosferoArticleBlog} from "./../components/noosfero-articles/blog/blog.component"; +import {ArticleBlog} from "./../components/noosfero-articles/blog/blog.component"; import {ArticleView} from "../components/noosfero-articles/article/article_view"; @@ -34,7 +34,7 @@ export class MainContent { selector: 'main', template: '
', directives: [ - NoosferoArticleBlog, ArticleView, Boxes, Block, LinkListBlock, + ArticleBlog, ArticleView, Boxes, Block, LinkListBlock, MainBlock, RecentDocumentsBlock, Navbar, ProfileImageBlock, MembersBlock ], providers: [AuthService, Session] diff --git a/src/lib/ng-noosfero-api/http/article.service.ts b/src/lib/ng-noosfero-api/http/article.service.ts index 3a1f4a8..2f9c5f3 100644 --- a/src/lib/ng-noosfero-api/http/article.service.ts +++ b/src/lib/ng-noosfero-api/http/article.service.ts @@ -4,12 +4,16 @@ import { Injectable, Inject } from "ng-forward"; @Inject("Restangular") export class ArticleService { - constructor(private Restangular: any) { - - } + constructor(private Restangular: any) { } getByProfile(profileId: number, filters: any) { return this.Restangular.service('profiles').one(profileId).one('articles').get(filters); } + getChildren(id: number, filters: any) { + return this.Restangular.service('articles').one(id).customGET('children', filters); + } + + + } -- libgit2 0.21.2