私のアプリケーションにAngularjsを使用しています。私はページネーションオプションを使用する際に問題に直面しています。私はページネーションを作成するためにdir-paginateオプションを使用しています。ここでangularjsのページ設定1.5
はここ
<tr data-dir-paginate="college in colleges | itemsPerPage: 10"
data-current-page="currentPage">
<td>{{$index + 1}}</td>
<td><a href="#!/collegedetails/{{college.collegeId}}">
{{college.name}}</a></td>
<td>{{college.typeName}}</td>
</tr>
が、私は今、それだけで空page.Sometimesにそれを表示している私のインデックスにdirPagination.jsをpage.But含まれている私のController.js
var Controller = function($scope, $rootScope)
{
var app = angular.module('adminApp',
['angularUtils.directives.dirPagination']);
$scope.currentPage = 1;
$scope.itemsPerPage = 10;
$scope.getAllColleges = function()
{
AdminCollegeService.getAllColleges().then(function(response){
$scope.colleges=response.data;
});
}
}
である私のhtmlです私はコントローラからの応答を取得していますが、私はhtmlで表示することができません。コード内に何かがありませんか?
あなたはあなたの全体のHTMLを入れることができます。あなたのコントローラー全体が原因で、tr -repeatだけが表示されます。 –