2016-07-18 3 views
0

페이지 번호를 클릭하면 해당 결과가 표시되지 않습니다. 다음은 코드 샘플입니다. 서비스에서 데이터를 채우기하고 어디페이지 번호가 템플릿에서 작동하지 않습니다.

<div class="col wrapper-sm w-md bg-auto dk r-r"> 
<div class="panel panel-default" ng-show="$parent.showPie === true;"> 
    <div class="table-responsive"> 
     <table class="table" ng-show="hashes[0]" id="placement"> 
      <thead> 
       <th> Hash </th> 
       <th> MalwareFamily </th> 
       <th> Score </th> 
       <th> Counts </th> 
      </thead> 
      <tbody> 
       <tr dir-paginate="hash in hashes| itemsPerPage:20"> 
        <td><a href="#/app/country/{{countryName}}/cCode/{{stateCode}}/hash/{{hash['hash']}}/inbox/info" >{{hash['hash']}} </a></td> 
        <td> {{hash['malFamily']}} </td> 
        <td> {{hash['malScore']}} </td> 
        <td> {{hash['hits']}} </td> 
       </tr> 
      </tbody> 
     </table> 
    </div> 
    <div id="content"> 
     <dir-pagination-controls></dir-pagination-controls> 
    </div> 
</div> 

해당 컨트롤러 인, 서비스를 잘 데이터를주고있다 :

function malPAge(test) { 

crudSrv.getResults(rootURL.url.baseURL + "global/country/" + $scope.stateCode + "/attacks/malware/hashes/" + test + "/", function(data, status) { 
    ngProgress.complete(); 
    $scope.hashes = data; 
    var m = "placement"; 
    $location.hash(m); 
    $anchorScroll(); 
}); 

은}

답변

0

나는 ID 개념을 사용하여 고정. 아래 코드는 어떻게이 문제를 해결 했나요?

<div class="col wrapper-sm w-md bg-auto dk r-r"> 
<div class="panel panel-default" ng-show="$parent.showPie === true;"> 
    <div class="table-responsive"> 
     <table class="table" ng-show="hashes[0]" id="placement"> 
      <thead> 
       <th> Hash </th> 
       <th> MalwareFamily </th> 
       <th> Score </th> 
       <th> Counts </th> 
      </thead> 
      <tbody> 
       <tr dir-paginate="hash in hashes| itemsPerPage:20" pagination-id="hash"> 
        <td><a href="#/app/country/{{countryName}}/cCode/{{stateCode}}/hash/{{hash['hash']}}/inbox/info" >{{hash['hash']}} </a></td> 
        <td> {{hash['malFamily']}} </td> 
        <td> {{hash['malScore']}} </td> 
        <td> {{hash['hits']}} </td> 
       </tr> 
      </tbody> 
     </table> 
    </div> 
    <div id="content"> 
     <dir-pagination-controls pagination-id="hash"></dir-pagination-controls> 
    </div> 
</div> 

관련 문제