import {Component, Input} from '@angular/core'; import { FetchPublications } from '../../utils/fetchEntitiesClasses/fetchPublications.class'; import {ErrorCodes} from '../../utils/properties/errorCodes'; import{EnvProperties} from '../../utils/properties/env-properties'; @Component({ selector: 'publicationsTab', template: `
View all {{fetchPublications.searchUtils.totalResults | number}} results
` }) export class PublicationsTabComponent { @Input() paramsForSearchLink = {};//: string = ""; @Input() fetchPublications : FetchPublications; @Input() properties:EnvProperties ; public linkToSearchPublications = ""; public errorCodes:ErrorCodes = new ErrorCodes(); constructor () {} ngOnInit() { this.linkToSearchPublications = this.properties.searchLinkToAdvancedPublications } ngOnDestroy() {} }