From 65c1878feda9ea8c58f247dc5170d2bd3c6230da Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Tue, 15 Mar 2016 16:19:26 -0300 Subject: [PATCH] Fix content viewer component --- src/app/content-viewer/content-viewer.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/content-viewer/content-viewer.component.ts b/src/app/content-viewer/content-viewer.component.ts index 68c0091..bf5ffad 100644 --- a/src/app/content-viewer/content-viewer.component.ts +++ b/src/app/content-viewer/content-viewer.component.ts @@ -26,9 +26,7 @@ export class ContentViewer { @Input() profile: noosfero.Profile = null; - constructor(private articleService: ArticleService, private profileService: ProfileService, private $log: ng.ILogService, private $stateParams: angular.ui.IStateParamsService) { } - - ngOnInit() { + constructor(private articleService: ArticleService, private profileService: ProfileService, private $log: ng.ILogService, private $stateParams: angular.ui.IStateParamsService) { this.profileService.getCurrentProfile().then((profile: noosfero.Profile) => { this.profile = profile; return this.articleService.getByProfile(this.profile.id, { path: this.$stateParams["page"] }); -- libgit2 0.21.2