This repository was archived by the owner on Apr 12, 2024. It is now read-only.
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
Description
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/