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