I have google maps which triggers 100+ times per second change detection. how to disable change detection for this.
Click here for map preview
it will be eve
Another option to temporary disable change detection ChangeDetectorRef
enabled = true; constructor(private ref: ChangeDetectorRef) toggleChangeDetection() { if (this.enabled) { this.enabled = false; this.ref.detach(); } else { this.enabled = true; this.ref.reattach(); }