import {Component, Input} from '@angular/core'; import { FetchResearchResults } from '../../utils/fetchEntitiesClasses/fetchResearchResults.class'; import {ErrorCodes} from '../../utils/properties/errorCodes'; import{EnvProperties} from '../../utils/properties/env-properties'; @Component({ selector: 'datasetsTab', template: `
View all {{fetchDatasets.searchUtils.totalResults | number}} results
` }) export class DatasetsTabComponent { @Input() paramsForSearchLink = {}; @Input() fetchDatasets : FetchResearchResults; @Input() properties:EnvProperties ; public linkToSearchDatasets = ""; public errorCodes:ErrorCodes = new ErrorCodes(); constructor () {} ngOnInit() { this.linkToSearchDatasets = this.properties.searchLinkToAdvancedDatasets; } ngOnDestroy() {} }