Commit 65c1878feda9ea8c58f247dc5170d2bd3c6230da
1 parent
208eb343
Exists in
master
and in
31 other branches
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 | 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"] }); | ... | ... |