Commit 65c1878feda9ea8c58f247dc5170d2bd3c6230da

Authored by Victor Costa
1 parent 208eb343

Fix content viewer component

src/app/content-viewer/content-viewer.component.ts
... ... @@ -26,9 +26,7 @@ export class ContentViewer {
26 26 @Input()
27 27 profile: noosfero.Profile = null;
28 28  
29   - constructor(private articleService: ArticleService, private profileService: ProfileService, private $log: ng.ILogService, private $stateParams: angular.ui.IStateParamsService) { }
30   -
31   - ngOnInit() {
  29 + constructor(private articleService: ArticleService, private profileService: ProfileService, private $log: ng.ILogService, private $stateParams: angular.ui.IStateParamsService) {
32 30 this.profileService.getCurrentProfile().then((profile: noosfero.Profile) => {
33 31 this.profile = profile;
34 32 return this.articleService.getByProfile(this.profile.id, { path: this.$stateParams["page"] });
... ...