import {Component, Input} from '@angular/core'; import {Meta, Title} from '@angular/platform-browser'; import {User} from "../../login/utils/helper.class"; import {UserManagementService} from "../../services/user-management.service"; @Component({ selector: 'my-claims', template: `
My links
Manage your links in OpenAIRE
` }) export class MyClaimsComponent { @Input() claimsInfoURL: string; @Input() communityId:string; @Input() piwikSiteId = null; @Input() userInfoURL: string; public user: User = null; constructor(private userManagementService: UserManagementService) {} ngOnInit() { this.userManagementService.getUserInfo().subscribe(user => { this.user = user; }); } }