Trying to filter out elements with a specific property that is not null. For:
var details = [{name:'Bill', shortDescription: null}, {name:'Sally', shortDescription: 'A girl'}]
I would like to show only one; one for sally. This is what I tried without success.
<ul> <li ng-repeat="detail in details | filter:{shortDescription:'!'}"> <p>{{detail.shortDescription}}</p> </li> </ul>
Any idea how I can do this without creating a custom filter? Or even what a custom filter will look like?
javascript angularjs angularjs-filter
Scotty Bollinger Sep 05 '13 at 7:28 2013-09-05 19:28
source share