<html>
<body ng-app="testApp" ng-controller="testControl">
<ul>
<li ng-repeat="x in phones">
{{x.name}}<br />{{x.title}}
</li>
</ul>
</body>
</html>
JS档案
var testApp = angular.module('testApp', []);
testApp.controller('testControl', function($scope){
$scope.phones = [
{name: 'iPhone 6', title: 'Apple created'},
{name: 'Samsumg Galaxy 2', title: 'Samsung created'}
];
});
JS Fiddle