title: Ng-Repeat Filter Empty string
body: <p>I have tried to filter blank string item from ng-repeat. But didn't succeeded. Can someone please help me at this.</p>
  
  <p><a href="http://jsfiddle.net/ovsqf17n/9/" rel="nofollow">JSFiddel Link</a></p>
  
  <p>HTML Code:</p>
  
  <pre><code>&lt;div ng-app ng-controller="myCtrl"&gt;
      &lt;ul&gt;
          &lt;li ng-repeat="detail in details | filter: filter2 "&gt;
              &lt;p&gt;{{detail.name}}&lt;/p&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>JS Code:</p>
  
  <pre><code>function myCtrl($scope) {
      $scope.details = [{
          name: 'Bill',
          shortDescription: null
      }, {
          name: 'Sally',
          shortDescription: 'A girl'
      },{
          name: 'Tally',
          shortDescription: ''
      }];
  }
  
  function filter2(detail){
      if (item.shortDescription.length == 0){
          return true;
      }
      else{
          return false;
      }
  }
  </code></pre>
  
  <p>Expected Result:</p>
  
  <pre><code>/*
  Expected Result
  
  Bill
  Sally
  */
  </code></pre>