Last active
February 25, 2016 19:54
-
-
Save leandroh/94e841554f327cf90739 to your computer and use it in GitHub Desktop.
Angular ng-repeat table exemplo
This file contains hidden or 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
| <table data-ng-controller="ProdutosCtrl as ctrl"> | |
| <tr> | |
| <th>Produto</th> | |
| <th>Valor</th> | |
| </tr> | |
| <tr data-ng-repeat="produto in ctrl.produtos"> | |
| <td>{{ produto.nome }}</td> | |
| <td>{{ produto.valor | currency: 'R$ ' }}</td> | |
| </tr> | |
| </table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment