import {Component, Input, Output, EventEmitter} from '@angular/core'; @Component({ selector: 'search-results-per-page', template: `
Results per page: 5 10 20 50
` }) export class SearchResultsPerPageComponent { @Input() isDisabled: boolean = false; @Input() size: number; @Output() sizeChange = new EventEmitter(); constructor () {} ngOnInit() {} sizeChanged() { this.sizeChange.emit(this.size); } }