-
Notifications
You must be signed in to change notification settings - Fork 24.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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue in Angular example #31814
Comments
Thank you, @Rakeshkohli. I'll get confirmation, but your question seems relevant. Adding link for reference. All the other checkboxes use |
I think @Rakeshkohli is right and it should be |
Agreed, @dariobraun! I couldn't figure out how it was working both ways either. I've raised a flag on this one for engineering help, so we should get clarification soon. |
@dariobraun @kapunahelewong |
Any input on this? |
Thanks for the bump, @dariobraun. Let me see if I can get some input. I think the right thing to do is change it. But why @Rakeshkohli gets the unchecked checkbox when removing the function, I'm not sure. I'll be back with some more info. |
Here is why it (kind of) works with What By using Now, upon clicking on the checkbox, the default browser behavior will kick in and toggle the checkbox's Finally, Angular will again evaluate the (Note that if Angular didn't have the optimization of skipping updating the property if the expression value hasn't changed since the last check, then Angular would always update I hope that (kind of) makes sense. Let me know if anything isn't clear. And just to be clear, yes, the example is wrong and it should be |
And just to be clear, yes, the example is wrong and it should be showHeroes, as already mentioned ========> Okay. |
Reopening the issue, since the issue still needs to be fixed. |
Great :) |
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. |
Hi,
Can you please elaborate the [checked]="toggleHeroes" as you can see on below attached image. I think it should be [checked]="showHeroes"
馃摎 Docs or angular.io bug report
Description
A clear and concise description of the problem...馃敩 Minimal Reproduction
What's the affected URL?**
https://angular.io/...Reproduction Steps**
Expected vs Actual Behavior**
馃摲Screenshot
馃敟 Exception or Error
馃實 Your Environment
Browser info
Anything else relevant?
The text was updated successfully, but these errors were encountered: