ng-options过滤器不起作用?

时间:2015-11-27 19:45:44

标签: javascript angularjs ng-options

我需要过滤ng-options以仅显示我想要的结果。 这是我的HTML

<select class="form-control" 
    ng-model="main.orderNameForUpdate"
    ng-options="singleOrdersProduct.name for singleOrdersProduct in main.singleOrdersProductOptions | filter:{ category.name : 'Pizza Favorites' }">
</select>

这是我的数据结构

enter image description here

但是我遇到了一些错误

所以任何人都知道如何解决这个问题?

谢谢!

1 个答案:

答案 0 :(得分:1)

请改为尝试:

int hi = 10;
int *hello = &hi;
相关问题