import {Component, Inject, provide} from "ng-forward"; import {ProfileService} from "../../lib/ng-noosfero-api/http/profile.service"; @Component({ selector: "profile-actions", templateUrl: "app/article/content-viewer/navbar-actions.html", providers: [ provide('profileService', { useClass: ProfileService }) ] }) @Inject(ProfileService) export class ProfileActionsComponent { profile: noosfero.Profile; parentId: number; constructor(profileService: ProfileService) { profileService.getCurrentProfile().then((profile: noosfero.Profile) => { this.profile = profile; }); } }