import {Component, Input, Output, EventEmitter} from '@angular/core'; @Component({ selector: 'search-sorting', template: `
Sort by: Relevance Date (most recent) Date (least recent) Title Creation Date (most recent) Creation Date (least recent)
` }) export class SearchSortingComponent { @Input() isDisabled: boolean = false; @Input() sortBy: string = ''; @Input() entityType: string = ''; @Output() sortByChange = new EventEmitter(); constructor () {} ngOnInit() {} sortByChanged() { this.sortByChange.emit(this.sortBy); } }