Commit 65c1878feda9ea8c58f247dc5170d2bd3c6230da

Authored by Victor Costa
1 parent 208eb343
Exists in master and in 1 other branch dev-fixes

Fix content viewer component

src/app/content-viewer/content-viewer.component.ts
@@ -26,9 +26,7 @@ export class ContentViewer { @@ -26,9 +26,7 @@ export class ContentViewer {
26 @Input() 26 @Input()
27 profile: noosfero.Profile = null; 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 this.profileService.getCurrentProfile().then((profile: noosfero.Profile) => { 30 this.profileService.getCurrentProfile().then((profile: noosfero.Profile) => {
33 this.profile = profile; 31 this.profile = profile;
34 return this.articleService.getByProfile(this.profile.id, { path: this.$stateParams["page"] }); 32 return this.articleService.getByProfile(this.profile.id, { path: this.$stateParams["page"] });