-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
update(): prevent change event to be fired at initialization #713
update(): prevent change event to be fired at initialization #713
Conversation
… multiple times * Adds a test which confirms, that the slide-toggle isn't firing the (change) event multiple times. Closes angular#709
@@ -74,6 +76,14 @@ export class MdSlideToggle implements ControlValueAccessor { | |||
private _renderer: Renderer) { | |||
} | |||
|
|||
/** @internal */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We figured out in alpha.5 that we can't actually mark life-cycle events as @internal
, since they then no longer satisfy the corresponding interface when compiled downstream. So I've been doing TODO: internal
for when TS adds a first class internal
access modifier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right, I've heard about that in another issue, but I missed that. Thanks again for the clarification, that makes sense.
LGTM aside from that |
LGTM |
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. |
Closes #709