Angular - Change Detection
What is wrong with this component code?
The view does not update after calling
@Component({ selector: 'app', template: '{{counter}}', changeDetection: ChangeDetectionStrategy.Default }) export class AppComponent { counter = 0; increment() { this.counter += 1 } }The view does not update after calling
increment().