角> = 1.3.16到最新(写入/更新时为1.5.5)使用''
(空字符串)(或'!!'
也可以)
<ul>
<li ng-repeat="detail in details | filter:{shortDescription: ''}">
<p>{{detail.shortDescription}}</p>
</li>
</ul>
示例:http://jsfiddle.net/TheSharpieOne/1mnachk6/
角度> = 1.3.6和<= 1.3.15使用 '!null'
<ul>
<li ng-repeat="detail in details | filter:{shortDescription: '!null'}">
<p>{{detail.shortDescription}}</p>
</li>
</ul>
示例:http://jsfiddle.net/TheSharpieOne/4wxs67yv/
角> = 1.2和<= 1.3.5使用''
(空字符串)(或'!!'
也可以)
<ul>
<li ng-repeat="detail in details | filter:{shortDescription: ''}">
<p>{{detail.shortDescription}}</p>
</li>
</ul>
示例:http://jsfiddle.net/TheSharpieOne/ovsqf17n/
角度<1.2 '!!'
<ul>
<li ng-repeat="detail in details | filter:{shortDescription: '!!'}">
<p>{{detail.shortDescription}}</p>
</li>
</ul>
示例:http://jsfiddle.net/TheSharpieOne/RGEdc/
总体而言,它'!!'
提供了最好的支持,但是''
建议使用(空字符串),并为此目的而设计。