Created
March 13, 2015 23:59
-
-
Save thulioph/a75bb30d95aea042fa85 to your computer and use it in GitHub Desktop.
beers html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Workshop Be MEAN</h2> | |
<p>Msg: {{ msg }}</p> | |
<table> | |
<thead> | |
<tr> | |
<th data-ng-click="ordenar('name')">Name</th> | |
<th data-ng-click="ordenar('price')">Price</th> | |
<th>Ações</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr data-ng-repeat='cerveja in cervejas | orderBy:predicate:reverse'> | |
<td> | |
<a href="#/beers/{{cerveja._id}}"> {{ cerveja.name }} </a> | |
</td> | |
<td>{{ cerveja.price }}</td> | |
<td> | |
<button data-ng-click="remove(cerveja)">Remove</button> | |
</td> | |
</tr> | |
</tbody> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment