根據 https://docs.angularjs.org/api/ng/directive/ngIf,ng-if 的值是 expression。所以改成ng-if="item.name" 就好了
ng-if
expression
ng-if="item.name"
根據 https://docs.angularjs.org/api/ng/directive/ngIf,
ng-if
的值是expression
。所以改成ng-if="item.name"
就好了