I am trying to use ng-show and it is simply when something exists, display it.
<span ng-show="comment">{{comment}}</span>
I tested this in the scope comment="No" but it hides it. When comment="Yes" it displays it, I am confused why this is happening because in JavaScript I try if (comment) and it works...
ng-show
directive internally uses a methodtoBoolean
Here is how it looks like
If you look at the implementation, anything like no, false,n,0 evaluate to false.