import {Component, Input} from '@angular/core';
import {RouterHelper} from '../../../utils/routerHelper.class';
//Usage Example " "
@Component({
selector: 'project-title',
template: `
{{project['name']}} ({{project['funderName']}})
`
})
export class ProjectTitleFormatter {
@Input() project: string[];
@Input() searchLink: string;
public url:string;
public routerHelper:RouterHelper = new RouterHelper();
constructor () {}
ngOnInit() {
this.url =this.searchLink+ "?projectId=" + this.project["openaireId"];
}
}