Angular - Change Detection
Consider this Angular component using the default change detection strategy:
What will happen when the button is clicked?
@Component({
selector: 'app-counter',
template: ``
})
export class CounterComponent {
count = 0;
increment() {
this.count++;
}
}What will happen when the button is clicked?
