我在Node.js中有服务器,我做单页面应用程序。我用角度。 当www加载时我迭代人员:
<div id="header"><h1>Tables</h1></div>
<div id="players" class="table" ng-controller="PersonsController as base">
<h3 class="tableHeader">Players</h2>
<ul class="tableList">
<li ng-repeat="person in base.persons" value="1">{{person.name}} {{person.surname}}</li>
</ul>
</div>
我还有表格并将数据发送到服务器。当我将人员添加到服务器时,我怎么能重复迭代数组。我必须这样做而不刷新。