Skip to content

Instantly share code, notes, and snippets.

@kevinwestern
Created August 2, 2012 16:03
Show Gist options
  • Save kevinwestern/3238175 to your computer and use it in GitHub Desktop.
Save kevinwestern/3238175 to your computer and use it in GitHub Desktop.
<div>
<h2>Weight Chart</h2>
<input type='number' class="input-medium search-query" ng-model='myweight' placeholder='Enter a weight..'/>
<table class='table table-bordered table-striped'>
<thead>
<tr>
<td>
lbs.
</td>
<td ng-repeat='percent in percentages'>
{{percent}}%
</td>
</tr>
</thead>
<tbody>
<tr>
<td>{{myweight}}</td>
<td ng-repeat='percent in percentages'>
{{myweight * percent/100 | number:1}}
</td>
</tr>
</tbody>
</table>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment