Angular - Change Detection
Consider this Angular component:
Why might the template not reflect the incremented value?
@Component({ selector: 'app-value', changeDetection: ChangeDetectionStrategy.OnPush }) export class ValueComponent { @Input() number = 0; increment() { this.number++; } }Why might the template not reflect the incremented value?
