似乎并不想渲染。
http://plnkr.co/edit/IoymnpSUtsleH1pXgwFj
app.controller('MainCtrl', function($scope) {
$scope.lists = [
{"name": "a"},
{ "name": "b"},
{"name" :"c"}
];
});
HTML
<li ng-repeat="item in lists">
<span>item.name</span>
</li>
答案 0 :(得分:2)
您应该使用{{ }}
符号,如下所示:
<li ng-repeat="item in lists">
<span> {{ item.name }}</span>
</li>