import {Component, Input} from '@angular/core'; import { FetchDataproviders } from '../../utils/fetchEntitiesClasses/fetchDataproviders.class'; import {OpenaireProperties, ErrorCodes} from '../../utils/properties/openaireProperties'; @Component({ selector: 'datasourcesTab', template: `
View all {{fetchDataproviders.searchUtils.totalResults}} results
` }) export class DatasourcesTabComponent { @Input() paramsForSearchLink = {}; @Input() fetchDataproviders : FetchDataproviders; public linkToSearchDataproviders = ""; public errorCodes:ErrorCodes = new ErrorCodes(); constructor () {} ngOnInit() { this.linkToSearchDataproviders = OpenaireProperties.getLinkToAdvancedSearchDataProviders(); } ngOnDestroy() {} }