import {Component, Input} from '@angular/core'; import { FetchProjects } from '../../utils/fetchEntitiesClasses/fetchProjects.class'; import { ErrorCodes} from '../../utils/properties/errorCodes'; import{EnvProperties} from '../../utils/properties/env-properties'; @Component({ selector: 'projectsTab', template: `
View all {{fetchProjects.searchUtils.totalResults}} results
` }) export class ProjectsTabComponent { @Input() paramsForSearchLink = {}; @Input() fetchProjects : FetchProjects; @Input() properties:EnvProperties ; public linkToSearchProjects = ""; public errorCodes:ErrorCodes = new ErrorCodes(); constructor () {} ngOnInit() { this.linkToSearchProjects = this.properties.searchLinkToAdvancedProjects; } ngOnDestroy() {} }