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

ng-if doesn't work as expected #6835

Closed
guidobouman opened this issue Mar 25, 2014 · 2 comments
Closed

ng-if doesn't work as expected #6835

guidobouman opened this issue Mar 25, 2014 · 2 comments

Comments

@guidobouman
Copy link

When using two ng-if's, one for variable and one for !variable, you'd expect one of them to always validate. With the string 0 this is not the case though. A double negation is required to achieve the expected result.

jsFiddle example:
http://jsfiddle.net/u4Fay/1/

@caitp
Copy link
Contributor

caitp commented Mar 25, 2014

this is a known issue, see #4005.

@guidobouman
Copy link
Author

Ah cool, I failed to properly search. Thanks for the hard work.

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