Upon my investigation, I have identified multiple issues with angularjs:
<div ng-show="['[]']">this should be displayed but it is not working as expected</div>
<div ng-show="[]">this should be displayed but it is not working as expected</div>
<div ng-show="[0]">this should be displayed but it is not working as expected</div>
<div ng-show="['0']">this should be displayed but it is not working as expected</div>
When these conditions are used within an if
statement in javascript, they evaluate to true. However, when utilized in ng-show
, ng-hide
, or ng-if
, they do not behave correctly.
This discrepancy raises the question: Is this a bug?