Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed ng-model on all selects
  • Loading branch information
Timothy Morris committed Apr 13, 2017
1 parent 9463dce commit 2abbe26
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/pages/categories/view.html
Expand Up @@ -11,17 +11,17 @@
<div class="card-content">
<div class="row">
<div class="col s6">
<select>
<select ng-model="rule.nutrientName">
<option ng-repeat="nutrient in nutrients" value="{{nutrient.name}}" ng-selected="nutrient.name==rule.nutrientName">{{nutrient.name}}</option>
</select>
</div>
<div class="col s6">
<select>
<select ng-model="rule.rank">
<option ng-repeat="rank in ranks" value="{{rank.id}}" ng-selected="rule.rank == rank.id">{{ rank.name }}</option>
</select>
</div>
<div class="col s4">
<select>
<select ng-model="rule.operator">
<option ng-repeat="operation in operations" value="{{operation.name}}" ng-selected="operation.name==rule.operator">{{operation.symbol}}</option>
</select>
</div>
Expand All @@ -30,7 +30,8 @@
</div>
<div class="col s4">
<select ng-model="rule.units">
<option ng-repeat="unit in units" value="{{unit}}" ng-selected="rule.units == unit">{{unit}}</option>
<option value="mg">mg</option>
<option value="g">g</option>
</select>
</div>
</div>
Expand Down

0 comments on commit 2abbe26

Please sign in to comment.