Skip to content

Filter "where" is unable to perform equality check on false value #77

@ccortezia

Description

@ccortezia

I am unable to apply a "where" filter over an object trying to match a property whose value is false. The example below should illustrate my scenario. On the excerp below, ng-repeat will not be repeated:

<div ng-repeat="item in [{prop:false}, {prop:true}] | where: {prop: false}">
    item: {{ item.prop }}
</div>

Now, with this new filter spec, the repetition will occur as expected:

<div ng-repeat="item in [{prop:false}, {prop:true}] | where: {prop: true}">
    item: {{ item.prop }}
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions