import {StateConfig, Component, Inject, provide} from 'ng-forward'; import {ProfileService} from "../../lib/ng-noosfero-api/http/profile.service"; @Component({ selector: 'profile-home', template: "
", providers: [provide('profileService', { useClass: ProfileService })] }) @Inject(ProfileService, "$state") export class ProfileHomeComponent { profile: noosfero.Profile; constructor(profileService: ProfileService, $state: ng.ui.IStateService) { profileService.getCurrentProfile().then((profile: noosfero.Profile) => { this.profile = profile; return profileService.getHomePage(