Created
September 29, 2015 00:39
-
-
Save mnsmarcelo/f278b8f631a60ad591e0 to your computer and use it in GitHub Desktop.
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
<html ng-app="listApp"> | |
<head> | |
<title>Lista Json Com AngularJS</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script> | |
<script src="angularApp.js" ></script> | |
</head> | |
<body ng-controller="mainController"> | |
<div class="container"> | |
<h1>{{titulo}}</h1> | |
<table class="table table-striped"> | |
<tr ng-repeat="item in produtos"> | |
<td>{{item.nome}}</td> | |
<td>{{item.preco}}</td> | |
<td>{{item.qtd}}</td> | |
</tr> | |
</table> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment