title: AngularJS undefined, null and 0
body: <p>Consider the following code:</p>
  
  <pre><code>&lt;div ng-controller="SomeCtrl"&gt;
      &lt;div ng-show="someVariable.someProperty"&gt;Value of someProperty is set&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now, when I set in my <code>SomeCtrl</code> controller:</p>
  
  <pre><code>$scope.someVariable.someProperty = 1;
  </code></pre>
  
  <p>It will show the div, as expected. But when I set:</p>
  
  <pre><code>$scope.someVariable.someProperty = 0;
  </code></pre>
  
  <p>It does not, while I only want to hide it in case <code>$scope.someVariable.someProperty</code> is either <code>undefined</code> or <code>null</code>. Of course I could write a simple Javascript helper-function to give me the expected result, or write something like:</p>
  
  <pre><code>&lt;div ng-show="someVariable.someProperty || someVariable.someProperty == 0"&gt;Value of someProperty is set&lt;/div&gt;
  </code></pre>
  
  <p>But isn't there a more elegant way to 
  handle this in AngularJS?</p>