Commit 65c1878feda9ea8c58f247dc5170d2bd3c6230da
1 parent
208eb343
Exists in
master
and in
1 other branch
Fix content viewer component
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
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"] }); |