Angular - Change Detection
Given this component with OnPush:
What triggers Angular to check this component for changes?
@Component({
selector: 'app-sample',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class SampleComponent {
@Input() data: string;
}What triggers Angular to check this component for changes?
