Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Invalid boolean expression evaluation when accessing a property of an undefined value #11976

Closed
julien-f opened this issue May 29, 2015 · 3 comments

Comments

@julien-f
Copy link

Let foo be undefined.

{{true && foo || false}} evaluates to false which is perfectly normal.

But {{true && foo.bar || false}} evaluates to true!!!

@julien-f
Copy link
Author

Tested with Angular 1.4.0.

@julien-f
Copy link
Author

Probably duplicate of #11959.

@Narretz
Copy link
Contributor

Narretz commented May 29, 2015

Yep, duplicate

@Narretz Narretz closed this as completed May 29, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants