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

paper-checkbox with ngClick bug #25

Closed
geovanisouza92 opened this issue Dec 1, 2014 · 1 comment
Closed

paper-checkbox with ngClick bug #25

geovanisouza92 opened this issue Dec 1, 2014 · 1 comment

Comments

@geovanisouza92
Copy link

Related to bizarre behavior with persistence lib.

The angular/angular.js#4765 issue reports that the ngClick directive is fired before ngModel change propagates to model.

This way, when I click on "check to-do as completed" it saves the prior state of model.

This SO answer and angular docs recommends to change ngClick to ngChange, but when I tried, it won't worked.

There is a way to make ngChange work with paper-checkbox?

@GabiAxel
Copy link
Owner

GabiAxel commented Dec 9, 2014

You can extend the mapping of paper-checkbox and map ngChange to change or core-change. My suggestion is to use plain Angular to observe the bound model, since adding a mapping is relatively costly (it will result in an additional observer for each checkbox in your app).

@GabiAxel GabiAxel closed this as completed Dec 9, 2014
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

2 participants