★ wanayoo — archive 1999 https://github.com/a8m/angular-filter/issues/77Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ccortezia opened this issue Jan 16, 2015 · 7 comments
Closed

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

ccortezia opened this issue Jan 16, 2015 · 7 comments

Comments

@ccortezia
Copy link

@ccortezia ccortezia commented Jan 16, 2015

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>
@ccortezia
Copy link
Author

@ccortezia ccortezia commented Jan 16, 2015

I see now that my understanding on this filter was wrong. This is not a property's value checking filter, but a property's existence checking one. Gonna close it alright.

@ccortezia ccortezia closed this Jan 16, 2015
@ccortezia
Copy link
Author

@ccortezia ccortezia commented Jan 16, 2015

Well, unfortunately I think my initial understanding was correct (in that "where" really check for properties values). My initial claim seem valid once again.

PS: sorry for the noise.

@ccortezia ccortezia reopened this Jan 16, 2015
@mallowigi
Copy link
Contributor

@mallowigi mallowigi commented Jan 16, 2015

Which version are you using? This bug have been fixed in the latest version (0.5.2)

@ccortezia
Copy link
Author

@ccortezia ccortezia commented Jan 16, 2015

I am on 0.5.1. Just got it from bower registry. Is 0.5.2 already bower ready ?

a8m added a commit that referenced this issue Jan 16, 2015
@a8m
Copy link
Owner

@a8m a8m commented Jan 18, 2015

@ccortezia , see: v0.5.2
Thanks.

@ccortezia
Copy link
Author

@ccortezia ccortezia commented Jan 23, 2015

Ok. Bower seems to be properly getting 0.5.2 now. Thanks !

@ccortezia ccortezia closed this Jan 23, 2015
@a8m
Copy link
Owner

@a8m a8m commented Jan 23, 2015

Awesome @ccortezia
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.