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

Out of NgZone and can't bind color data on latest angular version #328

Open
mayankkataria opened this issue Nov 26, 2020 · 0 comments
Open

Comments

@mayankkataria
Copy link

I was trying to change the value of backgroundColor by panning on this color picker. Though the value of backgroundColor was changing in console but the effect was not seen on HTML view. So I have to seperately call this.zone.run() to bind event color with backgroundColor

  constructor( private zone: NgZone ) { }
  changeColor(ev) {
    this.zone.run(() => {
        this.backgroundColor = ev.color.hex;
    });
  }
@mayankkataria mayankkataria changed the title Out of NgZone and can't bind color data in latest angular version Out of NgZone and can't bind color data on latest angular version Nov 26, 2020
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

No branches or pull requests

1 participant