【发布时间】:2015-03-10 23:21:39
【问题描述】:
最近我创建了一个 AngularJs App 。代码如下
HTML:
<div ng-app="" ng-controller="Hello">
<ul>
<li ng-repeat="x in greeting">
{{ x.user_name }}
</li>
</ul>
</div>
而我的 JS 代码是:
function Hello($scope, $http) {
$http.get('http://localhost/google/cibl/dashboard/get_all_user').
success(function(data) {
$scope.greeting = data;
});
}
它工作正常。这个 http 服务给了我 2000 行,现在我想用 AngularJs 来分页。我该怎么做?
【问题讨论】:
-
这里可能已经有一个答案:stackoverflow.com/questions/10816073/…
标签: html angularjs http pagination