<!DOCTYPE html>
<html>
<script src="http://www.sargonco.com/Uploads/Public/article/webdistut/javascript/angular.min.js"></script>
<body>

<div ng-app="" ng-init="names=[
{
name:'Jani',country:'Norway'},
{
name:'Hege',country:'Sweden'},
{
name:'Kai',country:'Denmark'}]">

<ul>
<li ng-repeat="x in names">
{{ x.name + ', ' + x.country }}
</li>
</ul>

</div>

</body>
</html>

Looping with objects:

  • {{ x.name + ', ' + x.country }}