16 lines
478 B
TypeScript
16 lines
478 B
TypeScript
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-trending-searches',
|
|
standalone: true,
|
|
templateUrl: './trending-searches.component.html',
|
|
styleUrls: ['./trending-searches.component.scss'],
|
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
})
|
|
export class TrendingSearchesComponent {
|
|
@Input() title = '';
|
|
@Input() items: string[] = [];
|
|
|
|
@Output() selected = new EventEmitter<string>();
|
|
}
|