javascript - ng-true-value='0' picking up wrong values -
for demo see jsfiddle here , click on out of stock
checkbox.
it should show stock quantity of 0, picking quantity of 30. think becasue matching against string values.
i assume issue with:
ng-true-value='0'
what best way fix this? please can provide code example?
make strict value dynamic:
<div ng-repeat="item in inventory | filter: searchinventory:!!searchinventory.qty | orderby:sortorder">
note: might messy if have multiple similar criterias
Comments
Post a Comment