import { Component, Input, ChangeDetectionStrategy } from '@angular/core'; @Component({ selector: 'app-detail', templateUrl: 'detail.component.html', styleUrls: ['detail.component.css'], changeDetection: ChangeDetectionStrategy.OnPush }) export class DetailComponent { @Input() title: string; @Input() idAttribute: number; }