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: 'softwareTab', template: `
View all {{fetchSoftware.searchUtils.totalResults | number}} results
` }) export class SoftwareTabComponent { @Input() paramsForSearchLink = {}; @Input() fetchSoftware : FetchResearchResults; @Input() properties:EnvProperties ; public linkToSearchSoftware = ""; public errorCodes:ErrorCodes = new ErrorCodes(); constructor () {} ngOnInit() { this.linkToSearchSoftware = this.properties.searchLinkToAdvancedSoftware; } ngOnDestroy() {} }