-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Emitting event on model change #776
Comments
+1 this is causing a bug for my when I attempt to implement hierarchical checkboxes. checking all of the boxes causes the parent box to become checked, all good. but unchecking a single box cases the parent box to become unchecked, which fires an event, which causes all of the boxes to become unchecked. not good, and also causes a devmode value changed after change detection exception. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This is just for discussion.
Do components have to emit changes if the viewmodel changes.
As example
<md-checkbox [(ngModel)]="myValue">
If i check (using the mouse) the checkbox, it's normal to get an event emitted with the value of the change.
But if I fo progamatically do
this.myValue = true;
Do the checkbox have to emit an event?The text was updated successfully, but these errors were encountered: