Skip to content

Instantly share code, notes, and snippets.

@diegonakamashi
Created September 3, 2013 16:50
Show Gist options
  • Select an option

  • Save diegonakamashi/6426476 to your computer and use it in GitHub Desktop.

Select an option

Save diegonakamashi/6426476 to your computer and use it in GitHub Desktop.
<html ng-app>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
</head>
<body>
<table ng-controller='SimpleController'>
<tr ng-repeat="pessoa in bairroDoLimoeiro">
<td>{{pessoa}}</td>
</tr>
</table>
<script>
function SimpleController($scope){
$scope.bairroDoLimoeiro = ['Mônica', 'Magali', 'Cascão', 'Cebolinha'];
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment