Angularjs filter not null

后端 未结 4 1578
执笔经年
执笔经年 2020-12-04 14:14

Trying to filter out items with a certain property that is not null So for:

var details = [{name:\'Bill\', shortDescription: null}, {name:\'Sally\', shortDes         


        
4条回答
  •  盖世英雄少女心
    2020-12-04 14:43

    According to https://github.com/angular/angular.js/issues/11573 for Angular >= 1.4, the recommendation is to use '' which matches any primitive except null/undefined.

    • {{detail.shortDescription}}

提交回复
热议问题