-
Notifications
You must be signed in to change notification settings - Fork 248
Conjunction evaluation is not short-circuiting #646
Comments
With the following element:
It looks like we are missing a short-circuit feature in change detection. |
Talking to Misko, we don't have short circuits anymore. The real bug here is that Since Angular handles |
Does this also mean that there is no short-circuiting for the ternary operator |
That is correct. Implementing short circuits will be fairly complicated and we don't have good use-cases for them at the moment. |
In Angular 0.9.8 the test file below behaves as expected:
x
is initially null and if the button is clicked, it is set to 3. No errors are reported.In the Angular version in git (tested with bb98990), just loading the file results in:
as if the conjunction
&&
(at the line marked (*)) is no longer short-circuiting; i.e. the right conjunction0 <= x
is still being evaluated.index.html
The text was updated successfully, but these errors were encountered: