Angular 2 detectChanges vs setTimeout()
问题 I'm facing an issue regarding angular 2 change detection. I'm using a component which uses the 'onPush' strategy and I've noticed that it's child component don't update them self on update (They themselves also 'onPush') so I've added changeDetector.detectChanges() to my code and it caused Maximum call stack size exceeded . I dag up a little bit and wound up doing setTimeout(() => { this.changeDetector.markForCheck(); }, 0); And the code worked just fine. My question is why angular