I have a fairly big list of data and every element has a filter applied. For performance reasons (I want to add a lot of attributes to each entry) I only want to update the list when data changes (it's fine if updating it is unperformant). Unfortunately, the OnPush ChangeStrategy in Angular 2 still updates whenever I click on something.
Is there a way to ONLY manually trigger updates/checks (using for example changeDetectorRef.markForCheck())and not have it automatic on every click event?
Both AngularJS (1.5) and Angular 2 are fine.
(click)in your template. Call detectChanges() when you want to manually run changed detection. I have no idea if this will work.detectChanges()with a detached changeDetector. Now I tried a reattach + detach which seems to work but does everything twice (even in prod mode).