2
Answers

How to pass Multiple Value in ng-true-value

Photo of karthi keyan

karthi keyan

8y
2.6k
1
 How to pass both MinValue and MaxValue in ng-true-value...
 
For Eg:MinValue:5000
MaxValue:10000 
 
<div ng-repeat="Price in PriceFilter">
<div class="item">
<input type="checkbox" ng-model="FilterSearch.istrPrice[$index]" ng-true-value="'{{}}'" ng-false-value=" ' ' " />
<label style="font-size:12px;margin-left:6%">
{{Price.MinValue}}
{{Price.seperator}}
{{Price.MaxValue}}
</label>
</div>
</div>

Answers (2)

3
Photo of Manas Mohapatra
89 20.4k 16.8m 8y
Try like below: 
  1. <div ng-repeat="Price in PriceFilter">  
  2.     <div class="item">  
  3.         <input type="checkbox" ng-model="FilterSearch.istrPrice[$index]"   
  4.             ng-true-value="'{{Price.MinValue}}' + '{{Price.MaxValue}}'" ng-false-value="'{{Price.MinValue}}'" />  
  5.         <label style="font-size:12px;margin-left:6%">  
  6.             {{Price.MinValue}}  
  7.             {{Price.seperator}}  
  8.             {{Price.MaxValue}}  
  9.         </label>  
  10.     </div>  
  11. </div>  
 
Accepted
-1
Photo of Bikesh Srivastava
78 23.9k 3.6m 8y
Actually it can be take only single condition,
But can you share your requirment so that i can share you alternate way.