i am trying to implement search records depends on drop-down and also want to apply records in descending order using checkbox but my checkbox is not working when i am click on it.
http://ift.tt/1EbO5VO">
<h1>Search Filter aesc/desc</h1>
<select ng-model="strcolumn">
<option value="sname">NAME</option>
<option value="course">COURSE</option>
<option value="fee">FEE</option>
</select>
<input type="checkbox" name = "isReverse" ng-model="isReverse">
<table border="2px solid green" ng-controller="stuCtrl">
<tr>
<td>NAME</td>
<td>COURSE</td>
<td>FEE</td>
</tr>
<tr ng-repeat="item in ar | orderBy:strcolumn : isReverse ">
<td>{{item.sname|uppercase}}</td>
<td>{{item.course}}</td>
<td>{{item.fee|currency}}</td>
</tr>
</table>
Aucun commentaire:
Enregistrer un commentaire