<select class="form-control"
id="Title"
name="Title"
ng-model="positionList"
ng-options="position as position.position_title for position in positions.data track by position.position_ID | filter:{is_active:1}">
</select>
is_active是另一个可用作职位的关键。这段代码工作正常,直到我添加一个过滤器...然后我得到一个无限的摘要错误
答案 0 :(得分:3)
将您的ng-options更改为在曲目前过滤:
position as position.position_title for position in (positions.data | filter:{is_active:1}) track by position.position_ID