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