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

nz-toggle fire only on user event ? #41

Open
ptitdje45 opened this issue Apr 5, 2017 · 1 comment
Open

nz-toggle fire only on user event ? #41

ptitdje45 opened this issue Apr 5, 2017 · 1 comment

Comments

@ptitdje45
Copy link

Hello,

can we fire a toggle only on user event, and don't call the 'on-toggle' when model is changed ?

Thanks

@pvillaverde
Copy link

Hey there! I've made a Pull request to issue this.
Check here: #44

I had some trouble when using nz-toggle with md-virtual-repeater due to the watch, so I made that it calls onToggle method only when the toggle function was called as a result of user action.

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