Angular - Change Detection
In this Angular snippet:
Why might the view show 10 instead of 20 after initialization?
ngOnInit() {
this.value = 10;
this.cd.detectChanges();
this.value = 20;
}Why might the view show 10 instead of 20 after initialization?
