Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually trigger change detection after loading an image to support ChangeDetectionStrategy.OnPush #60

Merged
merged 1 commit into from
May 18, 2020

Conversation

cat-mandres
Copy link

No description provided.

@cat-mandres
Copy link
Author

@thatisuday

Created a issue here to describe what this fix does!
#59

Would be great if this could get merged and a new version released.

Another possibility to fix the issue, would be to emit the imageChange event only AFTER the image actually changed (where I am now calling cdRef.detectChanges()) - then the user could trigger the change detection after the image change event and deal with the OnPush problems himself!

If you would prefer this solution let me know and I will change the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants