a8m / a8m/angular-filter

filterBy with boolean field is not working for me

Open
#250 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.9k
Forks
319
PR merge metrics
No merged PRs in 30d

Description

$scope.users = [
{ id: 1, first_name: 'Rob', last_name: 'John', mobile: 4444, isFoo: false },
{ id: 2, first_name: 'John', last_name: 'Wayne', mobile: 3333, isFoo: false },
{ id: 3, first_name: 'Rob', last_name: 'Johansson', mobile: 2222, isFoo: false },
{ id: 4, first_name: 'Mike', last_name: 'Terry', mobile: 1111, isFoo: true }
];

Return users whose `isFoo` is true:



{{ user.id }} : {{ user.first_name }} {{ user.last_name }}

Result:

All users... why?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.